From 3f4b33522bd04b509b73267550d24c44e61998ce Mon Sep 17 00:00:00 2001 From: Gereon Kremer Date: Thu, 1 Apr 2021 20:20:53 +0200 Subject: Refactor CLN dependency & Cleanup (#6251) This PR migrates CLN to a new Find script and adds the possibility to install CLN if not found in the system. Also, it does a bit of cleanup. --- test/unit/CMakeLists.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'test/unit') diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index 7b82f3346..0be0b80e1 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -37,18 +37,17 @@ macro(cvc4_add_unit_test is_white name output_dir) add_executable(${name} ${test_src}) target_compile_definitions(${name} PRIVATE ${CVC4_UNIT_TEST_FLAGS_BLACK}) gtest_add_tests(TARGET ${name}) - target_link_libraries(${name} main-test) - target_link_libraries(${name} GTest::Main) - target_link_libraries(${name} GTest::GTest) + target_link_libraries(${name} PUBLIC main-test) + target_link_libraries(${name} PUBLIC GTest::Main) + target_link_libraries(${name} PUBLIC GTest::GTest) if(USE_CLN) - target_link_libraries(${name} ${CLN_LIBRARIES}) - target_include_directories(${name} PRIVATE $) + target_link_libraries(${name} PUBLIC CLN) endif() if(USE_POLY) - target_link_libraries(${name} Polyxx) + target_link_libraries(${name} PUBLIC Polyxx) endif() - target_link_libraries(${name} GMP) + target_link_libraries(${name} PUBLIC GMP) if(${is_white}) target_compile_options(${name} PRIVATE -fno-access-control) endif() -- cgit v1.2.3