1 ADD_SUBDIRECTORY(3rdparty)
3 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${NEL_INCLUDE_DIR} ${QT_INCLUDES})
4 INCLUDE( ${QT_USE_FILE} )
6 CONFIGURE_FILE(translations/translations.qrc ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc COPYONLY)
8 FILE(GLOB STUDIO_SRC extension_system/*.h
12 SET(STUDIO_HDR extension_system/iplugin_manager.h
13 extension_system/plugin_manager.h
14 startup_settings_dlg.h
18 SET(STUDIO_RCS studio.qrc ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc)
20 SET(STUDIO_TS translations/object_viewer_qt_en.ts
21 translations/object_viewer_qt_fr.ts
22 translations/object_viewer_qt_de.ts
23 translations/object_viewer_qt_ru.ts)
25 SET(STUDIO_PLUGIN_UIS startup_settings_dlg.ui )
27 SET(QT_USE_QTGUI TRUE)
28 SET(QT_USE_QTOPENGL TRUE)
31 SET(STUDIO_RC studio.rc)
34 QT4_ADD_TRANSLATION(STUDIO_QM ${STUDIO_TS})
35 QT4_ADD_RESOURCES( STUDIO_RC_SRCS ${STUDIO_RCS})
36 QT4_WRAP_CPP( STUDIO_MOC_SRCS ${STUDIO_HDR} )
37 QT4_WRAP_UI( STUDIO_PLUGIN_UI_HDRS ${STUDIO_PLUGIN_UIS})
39 SOURCE_GROUP(QtResources FILES ${STUDIO_RCS} ${STUDIO_PLUGIN_UIS} )
40 SOURCE_GROUP(QtGeneratedMocQrcSrc FILES ${STUDIO_MOC_SRCS} ${STUDIO_RC_SRCS})
42 ADD_EXECUTABLE(studio WIN32 MACOSX_BUNDLE
47 ${STUDIO_PLUGIN_UIS} )
49 TARGET_LINK_LIBRARIES(studio
54 ADD_DEFINITIONS(-DQT_NO_KEYWORDS ${QT_DEFINITIONS})
55 NL_DEFAULT_PROPS(studio "Tools: Studio")
56 NL_ADD_RUNTIME_FLAGS(studio)
58 ADD_SUBDIRECTORY(plugins)
60 INSTALL(TARGETS studio RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT runtime BUNDLE DESTINATION /Applications)