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
|
|
|
|
2014-05-18 19:47:31 +00:00
|
|
|
FILE(GLOB STUDIO_SRC extension_system/*.h
|
2011-02-28 13:17:16 +00:00
|
|
|
extension_system/*.cpp
|
|
|
|
*.h *.cpp)
|
2010-12-02 10:52:22 +00:00
|
|
|
|
2014-05-18 19:47:31 +00:00
|
|
|
SET(STUDIO_HDR extension_system/iplugin_manager.h
|
2014-05-26 19:04:05 +00:00
|
|
|
extension_system/plugin_manager.h
|
|
|
|
settings_dialog.h )
|
2010-10-22 03:34:26 +00:00
|
|
|
|
2014-05-22 13:06:40 +00:00
|
|
|
SET(STUDIO_RCS studio.qrc ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc)
|
2011-02-28 13:17:16 +00:00
|
|
|
|
2014-05-18 19:47:31 +00:00
|
|
|
SET(STUDIO_TS translations/object_viewer_qt_en.ts
|
2011-02-28 13:17:16 +00:00
|
|
|
translations/object_viewer_qt_fr.ts
|
|
|
|
translations/object_viewer_qt_de.ts
|
|
|
|
translations/object_viewer_qt_ru.ts)
|
2014-05-26 19:04:05 +00:00
|
|
|
|
|
|
|
SET(STUDIO_PLUGIN_UIS settings_dialog.ui )
|
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)
|
2014-05-22 13:56:38 +00:00
|
|
|
SET(STUDIO_RC studio.rc)
|
2011-04-15 12:25:01 +00:00
|
|
|
ENDIF(WIN32)
|
2010-10-22 03:34:26 +00:00
|
|
|
|
2014-05-18 19:47:31 +00:00
|
|
|
QT4_ADD_TRANSLATION(STUDIO_QM ${STUDIO_TS})
|
|
|
|
QT4_ADD_RESOURCES( STUDIO_RC_SRCS ${STUDIO_RCS})
|
|
|
|
QT4_WRAP_CPP( STUDIO_MOC_SRCS ${STUDIO_HDR} )
|
2014-05-26 19:04:05 +00:00
|
|
|
QT4_WRAP_UI( STUDIO_PLUGIN_UI_HDRS ${STUDIO_PLUGIN_UIS})
|
2011-02-20 13:00:15 +00:00
|
|
|
|
2014-05-26 19:04:05 +00:00
|
|
|
SOURCE_GROUP(QtResources FILES ${STUDIO_RCS} ${STUDIO_PLUGIN_UIS} )
|
2014-05-18 19:47:31 +00:00
|
|
|
SOURCE_GROUP(QtGeneratedMocQrcSrc FILES ${STUDIO_MOC_SRCS} ${STUDIO_RC_SRCS})
|
2010-11-15 14:58:27 +00:00
|
|
|
|
2014-05-18 19:47:31 +00:00
|
|
|
ADD_EXECUTABLE(studio WIN32 MACOSX_BUNDLE
|
|
|
|
${STUDIO_SRC}
|
|
|
|
${STUDIO_MOC_SRCS}
|
|
|
|
${STUDIO_RC_SRCS}
|
2014-05-26 19:04:05 +00:00
|
|
|
${STUDIO_RC}
|
|
|
|
${STUDIO_PLUGIN_UIS} )
|
2010-10-22 03:34:26 +00:00
|
|
|
|
2014-05-18 19:47:31 +00:00
|
|
|
TARGET_LINK_LIBRARIES(studio
|
2010-10-22 03:34:26 +00:00
|
|
|
nelmisc
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${QT_QTMAIN_LIBRARY})
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(-DQT_NO_KEYWORDS ${LIBXML2_DEFINITIONS} ${QT_DEFINITIONS})
|
2014-05-18 19:47:31 +00:00
|
|
|
NL_DEFAULT_PROPS(studio "Tools: Studio")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(studio)
|
2010-10-22 03:34:26 +00:00
|
|
|
|
2010-12-01 13:16:28 +00:00
|
|
|
ADD_SUBDIRECTORY(plugins)
|
|
|
|
|
2014-05-18 19:47:31 +00:00
|
|
|
INSTALL(TARGETS studio RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT runtime BUNDLE DESTINATION /Applications)
|