1 INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}
2 ${CMAKE_CURRENT_SOURCE_DIR}
5 FILE(GLOB SRC *.cpp *.h)
6 SET(OVQT_EXT_SYS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin.h
7 ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin_manager.h
8 ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin_spec.h)
10 SET(OVQT_PLUG_BNP_MANAGER_HDR bnp_manager_plugin.h
13 bnp_filesystem_model.h
18 SET(OVQT_PLUG_BNP_MANAGER_UIS bnp_dirtree_form.ui
19 bnp_filelist_dialog.ui
22 SET(OVQT_PLUGIN_BNP_MANAGER_RCS bnp_manager.qrc)
24 SET(QT_USE_QTGUI TRUE)
26 QT4_ADD_RESOURCES(OVQT_PLUGIN_BNP_MANAGER_RC_SRCS ${OVQT_PLUGIN_BNP_MANAGER_RCS})
27 QT4_WRAP_CPP(OVQT_PLUG_BNP_MANAGER_MOC_SRC ${OVQT_PLUG_BNP_MANAGER_HDR})
28 QT4_WRAP_UI(OVQT_PLUG_BNP_MANAGER_UI_HDRS ${OVQT_PLUG_BNP_MANAGER_UIS})
30 SOURCE_GROUP(QtResources FILES ${OVQT_PLUG_BNP_MANAGER_UIS} ${OVQT_PLUGIN_BNP_MANAGER_RCS})
31 SOURCE_GROUP(QtGeneratedUiHdr FILES ${OVQT_PLUG_BNP_MANAGER_UI_HDRS})
32 SOURCE_GROUP(QtGeneratedMocSrc FILES ${OVQT_PLUG_BNP_MANAGER_MOC_SRC})
33 SOURCE_GROUP("BNP Manager Plugin" FILES ${SRC})
34 SOURCE_GROUP("OVQT Extension System" FILES ${OVQT_EXT_SYS_SRC})
36 ADD_LIBRARY(studio_plugin_bnp_manager MODULE ${SRC} ${OVQT_PLUG_BNP_MANAGER_MOC_SRC} ${OVQT_EXT_SYS_SRC} ${OVQT_PLUGIN_BNP_MANAGER_RC_SRCS} ${OVQT_PLUG_BNP_MANAGER_UI_HDRS})
38 TARGET_LINK_LIBRARIES(studio_plugin_bnp_manager studio_plugin_core nelmisc nelgeorges ${QT_LIBRARIES})
40 NL_DEFAULT_PROPS(studio_plugin_bnp_manager "Tools: Studio Plugin: BNP Manager")
41 NL_ADD_RUNTIME_FLAGS(studio_plugin_bnp_manager)
42 NL_ADD_LIB_SUFFIX(studio_plugin_bnp_manager)
44 ADD_DEFINITIONS(-DQT_PLUGIN -DQT_SHARED ${QT_DEFINITIONS})
46 INSTALL(TARGETS studio_plugin_bnp_manager LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${NL_BIN_PREFIX} ARCHIVE DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
47 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/studio_plugin_bnp_manager.xml DESTINATION ${OVQT_PLUGIN_SPECS_DIR} COMPONENT tools3d)