Salome HOME
fe254b2e6e8b5014c0fd2a7d618ba0bbe702f26f
[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   File.hpp
25   GDESession.hpp
26   Group.hpp
27   HttpConnection.hpp
28   JsonFormatter.hpp
29   Profile.hpp
30   ProfileAttribute.hpp
31   Study.hpp
32   StudyService.hpp
33   User.hpp
34   UserService.hpp
35 )
36
37 SET(gde_api_cpp_SOURCES
38   Attribute.cpp
39   AttributesService.cpp
40   CommandResultTO.cpp
41   CommandTO.cpp
42   CommandTO.tpp
43   FileService.cpp
44   GDESession.cpp
45   HttpConnection.cpp
46   JsonFormatter.cpp
47   ProfileAttribute.cpp
48   ProfilesService.cpp
49   StudyService.cpp
50   UserService.cpp
51 )
52
53 ADD_LIBRARY(GdeApiCpp SHARED ${gde_api_cpp_SOURCES})
54 TARGET_LINK_LIBRARIES(GdeApiCpp ${_link_LIBRARIES} )
55 INSTALL(TARGETS GdeApiCpp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION lib)
56
57 INSTALL(FILES ${gde_api_cpp_HEADERS} DESTINATION include)