Linux multi-monitor fullscreen support
[ryzomcore.git] / studio / src / plugins / mission_compiler / CMakeLists.txt
bloba3748d559d9f657ef3c5516e5bb7fcc763cdc586
1 INCLUDE_DIRECTORIES(    ${CMAKE_CURRENT_BINARY_DIR}
2                                                 ${CMAKE_CURRENT_SOURCE_DIR}
3                                                 ${QT_INCLUDES})
5 FILE(GLOB SRC *.cpp *.h)
7 SET(OVQT_EXT_SYS_SRC    ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin.h
8                                                 ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin_manager.h
9                                                 ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin_spec.h)
11 SET(OVQT_PLUG_MISSION_COMPILER_HDR      mission_compiler_plugin.h
12                                                         mission_compiler_main_window.h
13                                                         mission_compiler_settings_page.h
14                                                         server_entry_dialog.h)
16 SET(OVQT_PLUG_MISSION_COMPILER_UIS      mission_compiler_main_window.ui server_entry_dialog.ui mission_compiler_settings_page.ui)
18 SET(OVQT_PLUG_MISSION_COMPILER_RCS mission_compiler.qrc)
20 SET(QT_USE_QTGUI TRUE)
22 QT4_WRAP_CPP(OVQT_PLUG_MISSION_COMPILER_MOC_SRC ${OVQT_PLUG_MISSION_COMPILER_HDR})
23 QT4_ADD_RESOURCES( OVQT_PLUG_MISSION_COMPILER_RC_SRCS ${OVQT_PLUG_MISSION_COMPILER_RCS})
24 QT4_WRAP_UI(OVQT_PLUG_MISSION_COMPILER_UI_HDRS ${OVQT_PLUG_MISSION_COMPILER_UIS})
26 SOURCE_GROUP(QtResources FILES ${OVQT_PLUG_MISSION_COMPILER_UIS} ${OVQT_PLUG_MISSION_COMPILER_RCS})
27 SOURCE_GROUP(QtGeneratedUiHdr FILES ${OVQT_PLUG_MISSION_COMPILER_UI_HDRS})
28 SOURCE_GROUP(QtGeneratedMocSrc FILES ${OVQT_PLUG_MISSION_COMPILER_MOC_SRC} ${OVQT_PLUG_MISSION_COMPILER_RC_SRCS})
29 SOURCE_GROUP("Mission Compiler Plugin" FILES ${SRC})
30 SOURCE_GROUP("OVQT Extension System" FILES ${OVQT_EXT_SYS_SRC})
32 # Mission Compiler Library
33 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/ryzom/tools/leveldesign/mission_compiler_lib)
35 # Game Share Library
36 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/common/src)
38 ADD_LIBRARY(studio_plugin_mission_compiler MODULE ${SRC} ${OVQT_PLUG_MISSION_COMPILER_MOC_SRC} ${OVQT_PLUG_MISSION_COMPILER_RC_SRCS} ${OVQT_EXT_SYS_SRC} ${OVQT_PLUG_MISSION_COMPILER_UI_HDRS})
40 TARGET_LINK_LIBRARIES(studio_plugin_mission_compiler studio_plugin_core nelmisc nelligo ryzom_mission_compiler_lib ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY})
42 NL_DEFAULT_PROPS(studio_plugin_mission_compiler "Tools: Studio Plugin: Mission Compiler")
43 NL_ADD_RUNTIME_FLAGS(studio_plugin_mission_compiler)
44 NL_ADD_LIB_SUFFIX(studio_plugin_mission_compiler)
46 ADD_DEFINITIONS(-DQT_PLUGIN -DQT_SHARED ${QT_DEFINITIONS})
50 IF(WIN32)
51   IF(WITH_INSTALL_LIBRARIES)
52     INSTALL(TARGETS studio_plugin_mission_compiler LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} ARCHIVE DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
53   ELSE()
54     INSTALL(TARGETS studio_plugin_mission_compiler LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
55   ENDIF()
56 ELSE()
57   IF(WITH_INSTALL_LIBRARIES)
58     INSTALL(TARGETS studio_plugin_mission_compiler LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} ARCHIVE DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
59   ELSE()
60     INSTALL(TARGETS studio_plugin_mission_compiler LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
61   ENDIF()
62 ENDIF()
64 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/studio_plugin_mission_compiler.xml DESTINATION ${OVQT_PLUGIN_SPECS_DIR} COMPONENT tools3d)