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 CommandResultTO.hpp CommandTO.hpp HttpConnection.hpp JsonFormatter.hpp User.hpp UserService.hpp ) SET(gde_api_cpp_SOURCES CommandResultTO.cpp CommandTO.cpp HttpConnection.cpp JsonFormatter.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)