Merge branch 'main/rendor-staging' into main/atys-live
[ryzomcore.git] / studio / src / CMakeLists.txt
blob6083805f8247fedfac04c27950bc2d7d861e22f8
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
9                                                         extension_system/*.cpp 
10                                                         *.h *.cpp)
12 SET(STUDIO_HDR   extension_system/iplugin_manager.h 
13                                                 extension_system/plugin_manager.h
14                                                 startup_settings_dlg.h
15                                                 splash_screen.h
16                                                 pm_watcher.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)
24                                                 
25 SET(STUDIO_PLUGIN_UIS startup_settings_dlg.ui )
27 SET(QT_USE_QTGUI TRUE)
28 SET(QT_USE_QTOPENGL TRUE)
30 IF(WIN32)
31   SET(STUDIO_RC studio.rc)
32 ENDIF()
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
43                ${STUDIO_SRC}
44                ${STUDIO_MOC_SRCS}
45                ${STUDIO_RC_SRCS}
46                ${STUDIO_RC}
47                    ${STUDIO_PLUGIN_UIS} )
49 TARGET_LINK_LIBRARIES(studio
50                 nelmisc 
51                 ${QT_LIBRARIES}
52                 ${QT_QTMAIN_LIBRARY})
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)