]> SALOME platform Git repositories - modules/shaper.git/blob - src/Config/CMakeLists.txt
Salome HOME
The ability to register python plugins added
[modules/shaper.git] / src / Config / CMakeLists.txt
1 INCLUDE(Common)
2 INCLUDE(XMLProcessing)
3
4 INCLUDE_DIRECTORIES (${PROJECT_SOURCE_DIR}/src/Events
5                      ${PYTHON_INCLUDE_DIRS}) 
6
7 SET(PROJECT_HEADERS
8   Config_def.h
9   Config_FeatureMessage.h
10   Config_XMLReader.h
11   Config_ModuleReader.h
12   Config_FeatureReader.h
13   Config_Keywords.h
14   Config_WidgetAPI.h
15   Config_WidgetReader.h
16   Config_PointerMessage.h
17   Config_Common.h
18   Config_ValidatorMessage.h
19   Config_Prop.h
20   Config_PropManager.h
21  )
22  
23 SET(PROJECT_SOURCES
24   Config_FeatureMessage.cpp
25   Config_XMLReader.cpp
26   Config_ModuleReader.cpp
27   Config_FeatureReader.cpp
28   Config_WidgetAPI.cpp
29   Config_WidgetReader.cpp
30   Config_PointerMessage.cpp
31   Config_Common.cpp
32   Config_ValidatorMessage.cpp
33   Config_Prop.cpp
34   Config_PropManager.cpp
35 )
36
37 SET(XML_RESOURCES
38   plugins.xml
39 )
40
41 SET(PROJECT_LIBRARIES
42     Events
43     ${LIBXML2_LIBRARIES}
44     ${PYTHON_LIBRARIES}
45 )
46
47 SOURCE_GROUP ("Resource Files" FILES ${XML_RESOURCES})
48
49 ADD_DEFINITIONS(-DCONFIG_EXPORTS -D_SCL_SECURE_NO_WARNINGS) 
50 # -D_SCL_SECURE_NO_WARNINGS - to disable warnings 4996
51
52 ADD_LIBRARY(Config SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
53
54 TARGET_LINK_LIBRARIES(Config ${PROJECT_LIBRARIES})
55
56 INSTALL(TARGETS Config DESTINATION bin)
57 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)