Skip to content
Snippets Groups Projects
Commit fdefabc2 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Fix missing link libraries from test_package

On Windows, the static library for the protobuf component has to be explicitly linked in the test_package. This addresse issue #103
parent a5ca11a6
No related branches found
No related tags found
2 merge requests!61Release 0.3.0,!58Fix conan create on Windows
......@@ -13,8 +13,9 @@ set(test_cases
###################################################
find_package(linkahead REQUIRED)
find_package(GTest REQUIRED)
find_package(linkahead CONFIG REQUIRED)
find_package(GTest CONFIG REQUIRED)
find_package(Protobuf CONFIG REQUIRED)
# supress warnings during build of gtest
cmake_policy(SET CMP0054 NEW)
......@@ -25,7 +26,10 @@ include(GoogleTest REQUIRED)
# loop over all test cases and add them to the test runner
add_executable(test_info test_info.cpp)
target_link_libraries(test_info PRIVATE GTest::gtest GTest::gtest_main linkahead::linkahead)
target_link_libraries(test_info PRIVATE
GTest::gtest GTest::gtest_main
linkahead::linkahead caosdb_grpc clinkahead
protobuf::protobuf)
gtest_discover_tests(test_info)
# foreach(test_case ${test_cases})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment