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