Browse Source

- added linking to curl

master
Andreas Romeyke 3 years ago
parent
commit
318acf9bb9
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/CMakeLists.txt
  2. +1
    -1
      test/CMakeLists.txt

+ 1
- 1
src/CMakeLists.txt View File

@ -48,7 +48,7 @@ target_include_directories(cbag PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
#add_executable(test_payload ${PROJECT_SOURCE_DIR}/examples/test_payload.cpp ${libcbag_SOURCES_lib})
add_executable(test_payload examples/test_payload.cpp ${libcbag_SOURCES_lib})
TARGET_LINK_LIBRARIES(test_payload ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} cbag)
TARGET_LINK_LIBRARIES(test_payload ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CURL_LIBRARIES} cbag)
#add_executable(test_bag ${PROJECT_SOURCE_DIR}/examples/test_bag.cpp ${libcbag_SOURCES_lib})
add_executable(test_bag examples/test_bag.cpp ${libcbag_SOURCES_lib})
#TARGET_LINK_LIBRARIES(test_bag ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${POCO_NET_LIBRARIES} cbag)


+ 1
- 1
test/CMakeLists.txt View File

@ -41,7 +41,7 @@ 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(TestBag ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CURL_LIBRARY} 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)


Loading…
Cancel
Save