Linux multi-monitor fullscreen support
[ryzomcore.git] / studio / src / plugins / zone_painter / CMakeLists.txt
blobfef437ec0922965a2e76e8afaab8b369d1d23d85
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_ZONE_PAINTER_HDR  zone_painter_plugin.h
12                                                         qnel_widget.h
13                                                         zone_painter_settings_page.h
14                                                         zone_painter_main_window.h
15                                                         painter_dock_widget.h)
17 SET(OVQT_PLUG_ZONE_PAINTER_UIS  zone_painter_settings_page.ui zone_painter_main_window.ui painter_dock_widget.ui)
19 SET(OVQT_PLUG_ZONE_PAINTER_RCS zone_painter.qrc)
21 SET(QT_USE_QTGUI TRUE)
22 SET(QT_USE_QTOPENGL TRUE)
24 QT4_WRAP_CPP(OVQT_PLUG_ZONE_PAINTER_MOC_SRC ${OVQT_PLUG_ZONE_PAINTER_HDR})
25 QT4_ADD_RESOURCES( OVQT_PLUG_ZONE_PAINTER_RC_SRCS ${OVQT_PLUG_ZONE_PAINTER_RCS})
26 QT4_WRAP_UI(OVQT_PLUG_ZONE_PAINTER_UI_HDRS ${OVQT_PLUG_ZONE_PAINTER_UIS})
28 SOURCE_GROUP(QtResources FILES ${OVQT_PLUG_ZONE_PAINTER_UIS} ${OVQT_PLUG_ZONE_PAINTER_RCS})
29 SOURCE_GROUP(QtGeneratedUiHdr FILES ${OVQT_PLUG_ZONE_PAINTER_UI_HDRS})
30 SOURCE_GROUP(QtGeneratedMocSrc FILES ${OVQT_PLUG_ZONE_PAINTER_MOC_SRC} ${OVQT_PLUG_ZONE_PAINTER_RC_SRCS})
31 SOURCE_GROUP("Zone Painter Plugin" FILES ${SRC})
32 SOURCE_GROUP("OVQT Extension System" FILES ${OVQT_EXT_SYS_SRC})
34 ADD_LIBRARY(studio_plugin_zone_painter MODULE ${SRC} ${OVQT_PLUG_ZONE_PAINTER_MOC_SRC} ${OVQT_PLUG_ZONE_PAINTER_RC_SRCS} ${OVQT_EXT_SYS_SRC} ${OVQT_PLUG_ZONE_PAINTER_UI_HDRS})
36 TARGET_LINK_LIBRARIES(studio_plugin_zone_painter studio_plugin_core nelmisc nel3d ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY})
38 NL_DEFAULT_PROPS(studio_plugin_zone_painter "Tools: Studio Plugin: Zone Painter")
39 NL_ADD_RUNTIME_FLAGS(studio_plugin_zone_painter)
40 NL_ADD_LIB_SUFFIX(studio_plugin_zone_painter)
42 ADD_DEFINITIONS(-DQT_PLUGIN -DQT_SHARED ${QT_DEFINITIONS})
45 IF(WIN32)
46   IF(WITH_INSTALL_LIBRARIES)
47     INSTALL(TARGETS studio_plugin_zone_painter LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} ARCHIVE DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
48   ELSE()
49     INSTALL(TARGETS studio_plugin_zone_painter LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
50   ENDIF()
51 ELSE()
52   IF(WITH_INSTALL_LIBRARIES)
53     INSTALL(TARGETS studio_plugin_zone_painter LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} ARCHIVE DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
54   ELSE()
55     INSTALL(TARGETS studio_plugin_zone_painter LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
56   ENDIF()
57 ENDIF()
59 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/studio_plugin_zone_painter.xml DESTINATION ${OVQT_PLUGIN_SPECS_DIR} COMPONENT tools3d)