]> SALOME platform Git repositories - modules/shaper.git/blob - src/ExchangePlugin/CMakeLists.txt
Salome HOME
Fixed validators for Boolean and Intersection
[modules/shaper.git] / src / ExchangePlugin / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4 INCLUDE(UnitTest)
5
6 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
7                     ${PROJECT_SOURCE_DIR}/src/Config
8                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
9                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
10                     ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
11                     ${PROJECT_SOURCE_DIR}/src/XAO
12 )
13
14 SET(PROJECT_HEADERS
15     ExchangePlugin.h
16     ExchangePlugin_Plugin.h
17     ExchangePlugin_ImportFeature.h
18     ExchangePlugin_ExportFeature.h
19     ExchangePlugin_Validators.h
20     ExchangePlugin_Tools.h
21 )
22
23 SET(PROJECT_SOURCES
24     ExchangePlugin_Plugin.cpp
25     ExchangePlugin_ImportFeature.cpp
26     ExchangePlugin_ExportFeature.cpp
27     ExchangePlugin_Validators.cpp
28     ExchangePlugin_Tools.cpp
29 )
30
31 SET(XML_RESOURCES
32     export_widget.xml
33     plugin-Exchange.xml
34 )
35
36 SET(TEXT_RESOURCES
37         ExchangePlugin_msg_en.ts
38 )
39
40 SET(PROJECT_LIBRARIES
41     Events
42     Config
43     ModelAPI
44     GeomAPI
45     GeomAlgoAPI
46     XAO
47 )
48 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
49
50 ADD_DEFINITIONS(-DEXCHANGEPLUGIN_EXPORTS)
51 ADD_LIBRARY(ExchangePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
52
53 TARGET_LINK_LIBRARIES(ExchangePlugin ${PROJECT_LIBRARIES})
54
55 INSTALL(TARGETS ExchangePlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
56 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
57 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Exchange)
58 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
59
60 ADD_UNIT_TESTS(TestImport.py TestExport.py)
61
62 SET(DATA_FILES
63   solid.brep
64   solid.brp
65   screw.step
66   screw.stp
67   bearing.iges
68   bearing.igs
69   Box_1.brep
70   test.xao
71   export_ref.xao
72 )
73
74 FOREACH(file ${DATA_FILES})
75   CONFIGURE_FILE(
76     ${CMAKE_CURRENT_SOURCE_DIR}/Test/Data/${file}
77     ${CMAKE_CURRENT_BINARY_DIR}/Data/${file}
78     COPYONLY)
79 ENDFOREACH(file ${DATA_FIELS})
80