diff options
author | Gereon Kremer <gereon.kremer@cs.rwth-aachen.de> | 2021-03-31 23:17:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 21:17:38 +0000 |
commit | f9a9af855fb65804ff0b36e764ccd9d0fa9f87f8 (patch) | |
tree | 2c90b0e704366541187198231102b2d1eed26f41 /test | |
parent | 39ea1d8a1497a83d1efc649bd10da82916e5db5f (diff) |
Refactor GMP and Poly dependencies (#6245)
Refactors GMP and libpoly to also use external projects and be available within cmake as proper targets.
Diffstat (limited to 'test')
-rw-r--r-- | test/api/CMakeLists.txt | 3 | ||||
-rw-r--r-- | test/unit/CMakeLists.txt | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/test/api/CMakeLists.txt b/test/api/CMakeLists.txt index 239c32c94..1deea4a87 100644 --- a/test/api/CMakeLists.txt +++ b/test/api/CMakeLists.txt @@ -36,8 +36,7 @@ macro(cvc4_add_api_test name) target_link_libraries(${name} ${CLN_LIBRARIES}) target_include_directories(${name} PRIVATE $<BUILD_INTERFACE:${CLN_INCLUDE_DIR}>) endif() - target_link_libraries(${name} ${GMP_LIBRARIES}) - target_include_directories(${name} PRIVATE $<BUILD_INTERFACE:${GMP_INCLUDE_DIR}>) + target_link_libraries(${name} GMP) set_target_properties(${name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${test_bin_dir}) add_test(api/${name} ${test_bin_dir}/${name}) diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index c8c2b0d65..7b82f3346 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -46,11 +46,9 @@ macro(cvc4_add_unit_test is_white name output_dir) target_include_directories(${name} PRIVATE $<BUILD_INTERFACE:${CLN_INCLUDE_DIR}>) endif() if(USE_POLY) - target_link_libraries(${name} ${POLY_LIBRARIES}) - target_include_directories(${name} PRIVATE ${POLY_INCLUDE_DIR}) + target_link_libraries(${name} Polyxx) endif() - target_link_libraries(${name} ${GMP_LIBRARIES}) - target_include_directories(${name} PRIVATE ${GMP_INCLUDE_DIR}) + target_link_libraries(${name} GMP) if(${is_white}) target_compile_options(${name} PRIVATE -fno-access-control) endif() |