|
|
@ -14,15 +14,30 @@ message("OpenSSL libraries: ${OPENSSL_LIBRARIES}") |
|
|
|
include_directories(${OPENSSL_INCLUDE_DIR}) |
|
|
|
link_directories(${OPENSSL_LIBRARIES}) |
|
|
|
add_definitions(-DBOOST_TEST_DYN_LINK) |
|
|
|
|
|
|
|
#find_package(Poco COMPONENTS net) |
|
|
|
#message("POCO include dir: ${POCO_INCLUDE_DIR}") |
|
|
|
#message("POCO libraries: ${POCO_LIBRARIES}") |
|
|
|
#include_directories(${POCO_INCLUDE_DIR}) |
|
|
|
#link_directories(${POCO_LIBRARIES}) |
|
|
|
find_library(POCO_FOUNDATION PocoFoundation) |
|
|
|
find_library(POCO_NET PocoNet) |
|
|
|
set(POCO_NET_INCLUDE_DIR /usr/include) |
|
|
|
set(POCO_NET_LIBRARIES ${POCO_NET_FILEPATH}) |
|
|
|
message("POCO include dir: ${POCO_NET_INCLUDE_DIR}") |
|
|
|
message("POCO libraries: ${POCO_NET_LIBRARIES}") |
|
|
|
|
|
|
|
add_executable(TestBag testbag.cpp) |
|
|
|
add_executable(TestPayload test_payload.cpp) |
|
|
|
add_executable(TestPayloadManifest test_payloadmanifest.cpp) |
|
|
|
add_executable(TestTagManifest test_tagmanifest.cpp) |
|
|
|
add_executable(TestBagMetadata test_bagmetadata.cpp) |
|
|
|
add_executable(TestFetchFile test_fetchfile.cpp) |
|
|
|
target_link_libraries(TestBag ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} cbag) |
|
|
|
target_link_libraries(TestPayload ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} cbag) |
|
|
|
target_link_libraries(TestPayloadManifest ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} cbag) |
|
|
|
target_link_libraries(TestTagManifest ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} cbag) |
|
|
|
target_link_libraries(TestBagMetadata ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} cbag) |
|
|
|
target_link_libraries(TestBagMetadata ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} cbag) |
|
|
|
target_link_libraries(TestFetchFile ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${POCO_NET_LIBRARIES} cbag) |
|
|
|
|
|
|
|
|