INCLUDE_DIRECTORIES( ${Poco_INCLUDE_DIRS} ) LINK_DIRECTORIES( ${Poco_LIBRARY_DIRS} ) SET(_link_LIBRARIES # ${Poco_LIBRARIES} # all packages PocoFoundation PocoNet PocoJSON ) SET(gde_api_cpp_HEADERS Attribute.hpp AttributeGroup.hpp AttributesService.hpp CommandResultTO.hpp CommandTO.hpp Credentials.hpp File.hpp GDESession.hpp Group.hpp HttpConnection.hpp JsonFormatter.hpp Profile.hpp ProfileAttribute.hpp Study.hpp StudyService.hpp User.hpp UserService.hpp ) SET(gde_api_cpp_SOURCES Attribute.cpp AttributesService.cpp CommandResultTO.cpp CommandTO.cpp CommandTO.tpp FileService.cpp GDESession.cpp HttpConnection.cpp JsonFormatter.cpp ProfileAttribute.cpp ProfilesService.cpp StudyService.cpp UserService.cpp ) ADD_LIBRARY(GdeApiCpp SHARED ${gde_api_cpp_SOURCES}) TARGET_LINK_LIBRARIES(GdeApiCpp ${_link_LIBRARIES} ) INSTALL(TARGETS GdeApiCpp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION lib) INSTALL(FILES ${gde_api_cpp_HEADERS} DESTINATION include)