diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bf6030..1af9b9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,7 +108,7 @@ if (tests) add_executable(test_redox test/test.cpp) target_include_directories(test_redox PUBLIC ${GTEST_INCLUDE_DIRS}) - target_link_libraries(test_redox redox gtest) + target_link_libraries(test_redox redox ${GTEST_BOTH_LIBRARIES}) # So that we can run 'make test' add_test(test_redox test_redox) @@ -149,7 +149,7 @@ if (examples) add_executable(binary_data_publish examples/binary_data_publish.cpp) target_link_libraries(binary_data_publish redox) - + add_executable(pub_sub examples/pub_sub.cpp) target_link_libraries(pub_sub redox) diff --git a/make-ci.sh b/make-ci.sh index d179533..d553ef9 100755 --- a/make-ci.sh +++ b/make-ci.sh @@ -26,7 +26,5 @@ sudo cp -r googletest/googletest/include/gtest /usr/local/include # Make redox cmake -Dexamples=ON -Dlib=ON -Dstatic_lib=ON -Dtests=ON .. time make VERBOSE=1 -ldd ./test_redox -ls -al /usr/local/lib ./test_redox cd ..