summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2021-03-31 23:17:38 +0200
committerGitHub <noreply@github.com>2021-03-31 21:17:38 +0000
commitf9a9af855fb65804ff0b36e764ccd9d0fa9f87f8 (patch)
tree2c90b0e704366541187198231102b2d1eed26f41 /src/main
parent39ea1d8a1497a83d1efc649bd10da82916e5db5f (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 'src/main')
-rw-r--r--src/main/CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt
index 2e9757fc7..2d2b08378 100644
--- a/src/main/CMakeLists.txt
+++ b/src/main/CMakeLists.txt
@@ -40,6 +40,11 @@ endif()
add_dependencies(main cvc4 cvc4parser gen-tokens)
get_target_property(LIBCVC4_INCLUDES cvc4 INCLUDE_DIRECTORIES)
target_include_directories(main PRIVATE ${LIBCVC4_INCLUDES})
+if(USE_CLN)
+ target_link_libraries(main ${CLN_LIBRARIES})
+ target_include_directories(main PRIVATE $<BUILD_INTERFACE:${CLN_INCLUDE_DIR}>)
+endif()
+target_link_libraries(main GMP)
# main-test library is only used for linking against api and unit tests so
# that we don't have to include all object files of main into each api/unit
@@ -51,8 +56,7 @@ if(USE_CLN)
target_link_libraries(main-test ${CLN_LIBRARIES})
target_include_directories(main-test PRIVATE $<BUILD_INTERFACE:${CLN_INCLUDE_DIR}>)
endif()
-target_link_libraries(main-test ${GMP_LIBRARIES})
-target_include_directories(main-test PRIVATE $<BUILD_INTERFACE:${GMP_INCLUDE_DIR}>)
+target_link_libraries(main-test GMP)
#-----------------------------------------------------------------------------#
# cvc4 binary configuration
@@ -68,8 +72,7 @@ if(USE_CLN)
target_link_libraries(cvc4-bin ${CLN_LIBRARIES})
target_include_directories(cvc4-bin PRIVATE $<BUILD_INTERFACE:${CLN_INCLUDE_DIR}>)
endif()
-target_link_libraries(cvc4-bin ${GMP_LIBRARIES})
-target_include_directories(cvc4-bin PRIVATE $<BUILD_INTERFACE:${GMP_INCLUDE_DIR}>)
+target_link_libraries(cvc4-bin GMP)
if(PROGRAM_PREFIX)
install(PROGRAMS
$<TARGET_FILE:cvc4-bin>
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback