]> SALOME platform Git repositories - modules/shaper.git/blob - src/CollectionPlugin/CMakeLists.txt
Salome HOME
Issue #2052: Modification of parameters don't work (sketch, extrusion)
[modules/shaper.git] / src / CollectionPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 INCLUDE(Common)
4 INCLUDE(UnitTest)
5 INCLUDE(UseQtExt)
6
7 # additional include directories
8 INCLUDE_DIRECTORIES(${QT_INCLUDES})
9
10 # additional preprocessor / compiler flags
11 ADD_DEFINITIONS(${QT_DEFINITIONS})
12
13 SET(PROJECT_HEADERS
14     CollectionPlugin.h
15     CollectionPlugin_Plugin.h
16     CollectionPlugin_Group.h
17     CollectionPlugin_Field.h
18     CollectionPlugin_WidgetCreator.h
19     CollectionPlugin_WidgetField.h
20 )
21
22 SET(PROJECT_MOC_HEADERS
23     CollectionPlugin_WidgetField.h
24 )
25
26 SET(PROJECT_SOURCES
27     CollectionPlugin_Plugin.cpp
28     CollectionPlugin_Group.cpp
29     CollectionPlugin_Field.cpp
30     CollectionPlugin_WidgetCreator.cpp
31     CollectionPlugin_WidgetField.cpp
32 )
33
34 SET(XML_RESOURCES
35   plugin-Collection.xml
36   group_widget.xml
37 )
38
39 SET(TEXT_RESOURCES
40     CollectionPlugin_msg_en.ts
41 )
42
43 # sources / moc wrappings
44 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
45
46 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
47
48 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
49 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
50
51
52 INCLUDE_DIRECTORIES(
53   ../ModelAPI
54   ../GeomAPI
55   ../GeomAlgoAPI
56   ../GeomValidators
57   ../Events
58   ../ModuleBase
59   ../Config
60   ${CAS_INCLUDE_DIRS}
61 )
62
63 SET(PROJECT_LIBRARIES
64     Events
65     ModelAPI
66     GeomAPI
67     GeomAlgoAPI
68     GeomValidators
69     ModuleBase
70 )
71
72 ADD_DEFINITIONS(-DCOLLECTIONPLUGIN_EXPORTS ${CAS_DEFINITIONS})
73 ADD_LIBRARY(CollectionPlugin MODULE
74             ${PROJECT_SOURCES}
75             ${PROJECT_HEADERS}
76             ${XML_RESOURCES}
77             ${TEXT_RESOURCES}
78             ${PROJECT_AUTOMOC})
79 TARGET_LINK_LIBRARIES(CollectionPlugin ${PROJECT_LIBRARIES})
80
81 INSTALL(TARGETS CollectionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
82 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
83 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Collection)
84 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
85
86 ADD_UNIT_TESTS(
87                TestGroup.py
88                TestField.py
89                TestGroup1799.py
90 )