]> SALOME platform Git repositories - modules/shaper.git/blob - src/ExchangePlugin/CMakeLists.txt
Salome HOME
2a1c85e55a07775a8f7b04ba3f4b866ea23011d1
[modules/shaper.git] / src / ExchangePlugin / CMakeLists.txt
1 INCLUDE(Common)
2
3 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
4                     ${PROJECT_SOURCE_DIR}/src/Config
5                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
6                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
7                     ${CAS_INCLUDE_DIRS}
8
9
10 SET(PROJECT_HEADERS
11     ExchangePlugin.h
12     ExchangePlugin_Plugin.h
13     ExchangePlugin_ImportFeature.h
14     ExchangePlugin_Validators.h
15 )
16  
17 SET(PROJECT_SOURCES
18     ExchangePlugin_Plugin.cpp
19     ExchangePlugin_ImportFeature.cpp
20     ExchangePlugin_Validators.cpp
21 )
22
23 SET(XML_RESOURCES
24     plugin-Exchange.xml
25 )
26
27 SET(PROJECT_LIBRARIES
28     Events
29     ModelAPI
30     Config
31     GeomAPI
32     ${CAS_OCAF}
33     ${CAS_TKCAF}
34     ${CAS_SHAPE}
35     ${CAS_TKBO}
36 )
37
38 ADD_DEFINITIONS(-DEXCHANGEPLUGIN_EXPORTS ${CAS_DEFINITIONS})
39 ADD_LIBRARY(ExchangePlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
40
41 TARGET_LINK_LIBRARIES(ExchangePlugin ${PROJECT_LIBRARIES})
42
43 INSTALL(TARGETS ExchangePlugin DESTINATION plugins)
44 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)