]> SALOME platform Git repositories - modules/shaper.git/blob - src/ExchangePlugin/CMakeLists.txt
Salome HOME
Merge branch 'Dev_1.5.0' of salome:modules/shaper into Dev_1.5.0
[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 )
12
13 SET(PROJECT_HEADERS
14     ExchangePlugin.h
15     ExchangePlugin_Plugin.h
16     ExchangePlugin_ImportFeature.h
17     ExchangePlugin_ExportFeature.h
18     ExchangePlugin_Validators.h
19     ExchangePlugin_Tools.h
20 )
21
22 SET(PROJECT_SOURCES
23     ExchangePlugin_Plugin.cpp
24     ExchangePlugin_ImportFeature.cpp
25     ExchangePlugin_ExportFeature.cpp
26     ExchangePlugin_Validators.cpp
27     ExchangePlugin_Tools.cpp
28 )
29
30 SET(XML_RESOURCES
31     plugin-Exchange.xml
32 )
33
34 SET(PROJECT_LIBRARIES
35     Events
36     Config
37     ModelAPI
38     GeomAPI
39     GeomAlgoAPI
40 )
41
42 ADD_DEFINITIONS(-DEXCHANGEPLUGIN_EXPORTS)
43 ADD_LIBRARY(ExchangePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
44
45 TARGET_LINK_LIBRARIES(ExchangePlugin ${PROJECT_LIBRARIES})
46
47 INSTALL(TARGETS ExchangePlugin DESTINATION plugins)
48 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
49
50 ADD_UNIT_TESTS(TestImport.py TestExport.py)
51
52 CONFIGURE_FILE(Test/Data/solid.brep Data/solid.brep COPYONLY)
53 CONFIGURE_FILE(Test/Data/solid.brp Data/solid.brp COPYONLY)
54 CONFIGURE_FILE(Test/Data/screw.step Data/screw.step COPYONLY)
55 CONFIGURE_FILE(Test/Data/screw.stp Data/screw.stp COPYONLY)
56 CONFIGURE_FILE(Test/Data/bearing.iges Data/bearing.iges COPYONLY)
57 CONFIGURE_FILE(Test/Data/bearing.igs Data/bearing.igs COPYONLY)