New lua versions
[ryzomcore.git] / studio / src / plugins / translation_manager / CMakeLists.txt
blob62b60f9304ca55e09c40355b10b55de9fc0450bd
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_TRANSLATION_MANAGER_HDR   translation_manager_plugin.h
12                                                                                 translation_manager_main_window.h
13                                                                                 translation_manager_settings_page.h
14                                                                                 translation_manager_editor.h
15                                                                                 source_selection.h
16                                                                                 ftp_selection.h
17                                                                                 editor_worksheet.h
18                                                                                 editor_phrase.h
19                                                                                 uxt_editor.h
22 SET(OVQT_PLUG_TRANSLATION_MANAGER_UIS   translation_manager_settings_page.ui
23                                                                                 translation_manager_main_window.ui
24                                                                                 source_selection.ui
25                                                                                 ftp_selection.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})
51 IF(WIN32)
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)
54   ELSE()
55     INSTALL(TARGETS studio_plugin_translation_manager LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${OVQT_PLUGIN_DIR} COMPONENT tools3d)
56   ENDIF()
57 ELSE()
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)
60   ELSE()
61     INSTALL(TARGETS studio_plugin_translation_manager LIBRARY DESTINATION ${OVQT_PLUGIN_DIR} RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d)
62   ENDIF()
63 ENDIF()
65 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/studio_plugin_translation_manager.xml DESTINATION ${OVQT_PLUGIN_SPECS_DIR} COMPONENT tools3d)