]> SALOME platform Git repositories - modules/shaper.git/blob - src/ParametersPlugin/CMakeLists.txt
Salome HOME
Remove extra files
[modules/shaper.git] / src / ParametersPlugin / CMakeLists.txt
1 INCLUDE(Common)
2 INCLUDE(FindPython)
3 INCLUDE(UnitTest)
4 SET(CMAKE_AUTOMOC ON)
5
6 SET(PROJECT_HEADERS
7     ParametersPlugin.h
8     ParametersPlugin_Plugin.h
9     ParametersPlugin_Parameter.h
10     ParametersPlugin_PyInterp.h
11     ParametersPlugin_Validators.h
12     ParametersPlugin_EvalListener.h
13     ParametersPlugin_WidgetCreator.h
14     ParametersPlugin_ParametersMgr.h
15     ParametersPlugin_WidgetParamsMgr.h
16 )
17
18 SET(PROJECT_SOURCES
19     ParametersPlugin_Plugin.cpp
20     ParametersPlugin_Parameter.cpp
21     ParametersPlugin_PyInterp.cpp
22     ParametersPlugin_Validators.cpp
23     ParametersPlugin_EvalListener.cpp
24     ParametersPlugin_WidgetCreator.cpp
25     ParametersPlugin_ParametersMgr.cpp
26     ParametersPlugin_WidgetParamsMgr.cpp
27 )
28
29 SET(XML_RESOURCES
30     plugin-Parameters.xml
31 )
32
33 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
34                     ${PROJECT_SOURCE_DIR}/src/Config
35                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
36                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
37                     ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
38                     ${PROJECT_SOURCE_DIR}/src/ModuleBase
39                     ${SUIT_INCLUDE}
40                     ${PYTHON_INCLUDE_DIR}
41                     ${CAS_INCLUDE_DIRS}
42 )
43
44 MESSAGE(STATUS "PYTHON_LIBRARIES (ParametersPlugin): ${PYTHON_LIBRARIES}")
45
46 SET(PROJECT_LIBRARIES
47     Events
48     Config
49     ModelAPI
50     ModuleBase
51     ${PyInterp}
52     ${PYTHON_LIBRARIES}
53     ${QT_LIBRARIES}
54 )
55
56 ADD_DEFINITIONS(-DPARAMETERSPLUGIN_EXPORTS -DHAVE_DEBUG_PYTHON ${CAS_DEFINITIONS})
57
58 SET(TEXT_RESOURCES
59         ParametersPlugin_msg_ru.ts
60         ParametersPlugin_msg_en.ts
61 )
62
63 # QT4_CREATE_TRANSLATION(QM_RESOURCES
64 #                                          ${PROJECT_SOURCES}
65 #                                          ${TEXT_RESOURCES}
66 #                                          OPTIONS -extensions cpp -no-recursive
67 #                                          )
68
69 SET(PROJECT_AUTOMOC
70     ${CMAKE_CURRENT_BINARY_DIR}/ParametersPlugin_automoc.cpp
71 )
72
73
74 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${QM_RESOURCES})
75 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
76
77 ADD_LIBRARY(ParametersPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES} ${QM_RESOURCES})
78
79
80 TARGET_LINK_LIBRARIES(ParametersPlugin ${PROJECT_LIBRARIES})
81
82 INSTALL(TARGETS ParametersPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
83 INSTALL(FILES ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
84 INSTALL(FILES ${QM_RESOURCES} DESTINATION ${SHAPER_INSTALL_QM_RESOURCES})
85
86 ADD_UNIT_TESTS(TestParameterCreation.py
87                TestParameterRename.py
88                TestParameterChangeValue.py
89               )