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_TRANSLATION_MANAGER_HDR translation_manager_plugin.h
12 translation_manager_main_window.h
13 translation_manager_settings_page.h
14 translation_manager_editor.h
22 SET(OVQT_PLUG_TRANSLATION_MANAGER_UIS translation_manager_settings_page.ui
23 translation_manager_main_window.ui
27 SET(OVQT_PLUG_TRANSLATION_MANAGER_RCS ftp_selection.qrc)
29 SET(QT_USE_QTGUI TRUE)
30 SET(QT_USE_QTNETWORK TRUE)
32 QT4_WRAP_CPP(OVQT_PLUG_TRANSLATION_MANAGER_MOC_SRC ${OVQT_PLUG_TRANSLATION_MANAGER_HDR})
33 QT4_WRAP_UI(OVQT_PLUG_TRANSLATION_MANAGER_UI_HDRS ${OVQT_PLUG_TRANSLATION_MANAGER_UIS})
35 SOURCE_GROUP(QtResources FILES ${OVQT_PLUG_TRANSLATION_MANAGER_UIS})
36 SOURCE_GROUP(QtGeneratedUiHdr FILES ${OVQT_PLUG_TRANSLATION_MANAGER_UI_HDRS})
37 SOURCE_GROUP(QtGeneratedMocSrc FILES ${OVQT_PLUG_TRANSLATION_MANAGER_MOC_SRC})
38 SOURCE_GROUP("Translation Manager Plugin" FILES ${SRC})
39 SOURCE_GROUP("OVQT Extension System" FILES ${OVQT_EXT_SYS_SRC})
41 ADD_LIBRARY(studio_plugin_translation_manager MODULE ${SRC} ${OVQT_PLUG_TRANSLATION_MANAGER_MOC_SRC} ${OVQT_EXT_SYS_SRC} ${OVQT_PLUG_TRANSLATION_MANAGER_UI_HDRS})
43 TARGET_LINK_LIBRARIES(studio_plugin_translation_manager studio_plugin_core nelmisc nelligo nelgeorges ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY} ${QT_QTNETWORK_LIBRARY} )
45 NL_DEFAULT_PROPS(studio_plugin_translation_manager "Tools: Studio Plugin: Translation Manager")
46 NL_ADD_RUNTIME_FLAGS(studio_plugin_translation_manager)
47 NL_ADD_LIB_SUFFIX(studio_plugin_translation_manager)
49 ADD_DEFINITIONS(-DQT_PLUGIN -DQT_SHARED ${QT_DEFINITIONS})
52 IF(WITH_INSTALL_LIBRARIES)
53 INSTALL(TARGETS studio_plugin_translation_manager LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} ARCHIVE DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
55 INSTALL(TARGETS studio_plugin_translation_manager LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
58 IF(WITH_INSTALL_LIBRARIES)
59 INSTALL(TARGETS studio_plugin_translation_manager LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} ARCHIVE DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
61 INSTALL(TARGETS studio_plugin_translation_manager LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
65 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/studio_plugin_translation_manager.xml DESTINATION ${OVQT_PLUGIN_SPECS_DIR} COMPONENT tools3d)