Salome HOME
e80baf66a161e7940a6312fcd1651ec219f120d6
[modules/gde.git] / projects / GDE_API_CPP / api / src / CMakeLists.txt
1
2 INCLUDE_DIRECTORIES(
3   ${Poco_INCLUDE_DIRS}
4 )
5
6 LINK_DIRECTORIES(
7   ${Poco_LIBRARY_DIRS}
8   )
9
10 SET(_link_LIBRARIES
11 #  ${Poco_LIBRARIES} # all packages
12   PocoFoundation
13   PocoNet
14   PocoJSON
15 )
16
17 SET(gde_api_cpp_HEADERS
18   Attribute.hpp
19   AttributeGroup.hpp
20   AttributesService.hpp
21   CommandResultTO.hpp
22   CommandTO.hpp
23   Credentials.hpp
24   GDESession.hpp
25   Group.hpp
26   HttpConnection.hpp
27   JsonFormatter.hpp
28   Profile.hpp
29   ProfileAttribute.hpp
30   Study.hpp
31   StudyService.hpp
32   User.hpp
33   UserService.hpp
34 )
35
36 SET(gde_api_cpp_SOURCES
37   Attribute.cpp
38   AttributesService.cpp
39   CommandResultTO.cpp
40   CommandTO.cpp
41   CommandTO.tpp
42   GDESession.cpp
43   HttpConnection.cpp
44   JsonFormatter.cpp
45   ProfileAttribute.cpp
46   ProfilesService.cpp
47   StudyService.cpp
48   UserService.cpp
49 )
50
51 ADD_LIBRARY(GdeApiCpp SHARED ${gde_api_cpp_SOURCES})
52 TARGET_LINK_LIBRARIES(GdeApiCpp ${_link_LIBRARIES} )
53 INSTALL(TARGETS GdeApiCpp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION lib)
54
55 INSTALL(FILES ${gde_api_cpp_HEADERS} DESTINATION include)