2011-08-03 12:51:10 +00:00
|
|
|
ADD_SUBDIRECTORY(3rdparty)
|
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${QT_INCLUDES})
|
|
|
|
INCLUDE( ${QT_USE_FILE} )
|
|
|
|
|
2011-02-28 13:17:16 +00:00
|
|
|
CONFIGURE_FILE(translations/translations.qrc ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc COPYONLY)
|
2011-02-20 13:00:15 +00:00
|
|
|
|
2011-02-28 13:17:16 +00:00
|
|
|
FILE(GLOB OBJECT_VIEWER_SRC extension_system/*.h
|
|
|
|
extension_system/*.cpp
|
|
|
|
*.h *.cpp)
|
2010-12-02 10:52:22 +00:00
|
|
|
|
2011-02-28 13:17:16 +00:00
|
|
|
SET(OBJECT_VIEWER_HDR extension_system/iplugin_manager.h
|
|
|
|
extension_system/plugin_manager.h)
|
2010-10-22 03:34:26 +00:00
|
|
|
|
2011-02-28 13:17:16 +00:00
|
|
|
SET(OBJECT_VIEWER_RCS object_viewer_qt.qrc ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc)
|
|
|
|
|
|
|
|
SET(OBJECT_VIEWER_TS translations/object_viewer_qt_en.ts
|
|
|
|
translations/object_viewer_qt_fr.ts
|
|
|
|
translations/object_viewer_qt_de.ts
|
|
|
|
translations/object_viewer_qt_ru.ts)
|
2011-02-20 13:00:15 +00:00
|
|
|
|
2010-10-22 03:34:26 +00:00
|
|
|
SET(QT_USE_QTGUI TRUE)
|
|
|
|
SET(QT_USE_QTOPENGL TRUE)
|
2012-09-24 07:49:52 +00:00
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET(OBJECT_VIEWER_RC object_viewer_qt.rc)
|
2011-04-15 12:25:01 +00:00
|
|
|
ENDIF(WIN32)
|
2010-10-22 03:34:26 +00:00
|
|
|
|
2012-09-24 07:49:52 +00:00
|
|
|
QT4_ADD_TRANSLATION(OBJECT_VIEWER_QM ${OBJECT_VIEWER_TS})
|
2011-02-28 13:17:16 +00:00
|
|
|
QT4_ADD_RESOURCES( OBJECT_VIEWER_RC_SRCS ${OBJECT_VIEWER_RCS})
|
2010-10-22 03:34:26 +00:00
|
|
|
QT4_WRAP_CPP( OBJECT_VIEWER_MOC_SRCS ${OBJECT_VIEWER_HDR} )
|
2011-02-20 13:00:15 +00:00
|
|
|
|
2011-02-28 13:17:16 +00:00
|
|
|
SOURCE_GROUP(QtResources FILES ${OBJECT_VIEWER_RCS})
|
|
|
|
SOURCE_GROUP(QtGeneratedMocQrcSrc FILES ${OBJECT_VIEWER_MOC_SRCS} ${OBJECT_VIEWER_RC_SRCS})
|
2010-11-15 14:58:27 +00:00
|
|
|
|
2011-02-20 13:00:15 +00:00
|
|
|
ADD_EXECUTABLE(object_viewer_qt WIN32 MACOSX_BUNDLE
|
|
|
|
${OBJECT_VIEWER_SRC}
|
|
|
|
${OBJECT_VIEWER_MOC_SRCS}
|
2011-04-15 12:25:01 +00:00
|
|
|
${OBJECT_VIEWER_RC_SRCS}
|
|
|
|
${OBJECT_VIEWER_RC})
|
2010-10-22 03:34:26 +00:00
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(object_viewer_qt
|
|
|
|
nelmisc
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${QT_QTMAIN_LIBRARY})
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(-DQT_NO_KEYWORDS ${LIBXML2_DEFINITIONS} ${QT_DEFINITIONS})
|
|
|
|
NL_DEFAULT_PROPS(object_viewer_qt "NeL, Tools, 3D: Object Viewer Qt")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(object_viewer_qt)
|
|
|
|
|
2010-12-01 13:16:28 +00:00
|
|
|
ADD_SUBDIRECTORY(plugins)
|
|
|
|
|
2012-09-27 20:11:26 +00:00
|
|
|
INSTALL(TARGETS object_viewer_qt RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT runtime BUNDLE DESTINATION /Applications)
|