1 INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}
2 ${CMAKE_CURRENT_SOURCE_DIR}
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_EXAMPLE_HDR example_plugin.h
14 example_settings_page.h)
16 SET(OVQT_PLUG_EXAMPLE_UIS example_settings_page.ui)
18 SET(QT_USE_QTGUI TRUE)
19 SET(QT_USE_QTOPENGL TRUE)
21 QT4_WRAP_CPP(OVQT_PLUG_EXAMPLE_MOC_SRC ${OVQT_PLUG_EXAMPLE_HDR})
22 QT4_WRAP_UI(OVQT_PLUG_EXAMPLE_UI_HDRS ${OVQT_PLUG_EXAMPLE_UIS})
24 SOURCE_GROUP(QtResources FILES ${OVQT_PLUG_EXAMPLE_UIS})
25 SOURCE_GROUP(QtGeneratedUiHdr FILES ${OVQT_PLUG_EXAMPLE_UI_HDRS})
26 SOURCE_GROUP(QtGeneratedMocSrc FILES ${OVQT_PLUG_EXAMPLE_MOC_SRC})
27 SOURCE_GROUP("Example Plugin" FILES ${SRC})
28 SOURCE_GROUP("OVQT Extension System" FILES ${OVQT_EXT_SYS_SRC})
30 ADD_LIBRARY(studio_plugin_example MODULE ${SRC} ${OVQT_PLUG_EXAMPLE_MOC_SRC} ${OVQT_EXT_SYS_SRC} ${OVQT_PLUG_EXAMPLE_UI_HDRS})
32 TARGET_LINK_LIBRARIES(studio_plugin_example studio_plugin_core nelmisc nel3d ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY})
34 NL_DEFAULT_PROPS(studio_plugin_example "Tools: Studio Plugin: Example")
35 NL_ADD_RUNTIME_FLAGS(studio_plugin_example)
36 NL_ADD_LIB_SUFFIX(studio_plugin_example)
38 ADD_DEFINITIONS(-DQT_PLUGIN -DQT_SHARED ${QT_DEFINITIONS})
41 IF(WITH_INSTALL_LIBRARIES)
42 INSTALL(TARGETS studio_plugin_example LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} ARCHIVE DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
44 INSTALL(TARGETS studio_plugin_example LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
47 IF(WITH_INSTALL_LIBRARIES)
48 INSTALL(TARGETS studio_plugin_example LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} ARCHIVE DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
50 INSTALL(TARGETS studio_plugin_example LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
54 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/studio_plugin_example.xml DESTINATION ${OVQT_PLUGIN_SPECS_DIR} COMPONENT tools3d)