aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXimin Luo <ximin@dfinity.org>2019-03-16 04:16:32 +0800
committerXimin Luo <ximin@dfinity.org>2019-03-16 04:16:32 +0800
commita5ae5fe56816139c30bdf99e778a607c8524de9b (patch)
treea521f7dfd4dae1cb4759f908cfe1c20f19a712d0
parente44538e17c21b16335caf5ae0eec9704ebeeae8c (diff)
downloaddexon-bls-a5ae5fe56816139c30bdf99e778a607c8524de9b.tar
dexon-bls-a5ae5fe56816139c30bdf99e778a607c8524de9b.tar.gz
dexon-bls-a5ae5fe56816139c30bdf99e778a607c8524de9b.tar.bz2
dexon-bls-a5ae5fe56816139c30bdf99e778a607c8524de9b.tar.lz
dexon-bls-a5ae5fe56816139c30bdf99e778a607c8524de9b.tar.xz
dexon-bls-a5ae5fe56816139c30bdf99e778a607c8524de9b.tar.zst
dexon-bls-a5ae5fe56816139c30bdf99e778a607c8524de9b.zip
tests need to be linked against gmpxx since they now #include <gmpxx.h>
-rw-r--r--CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dcb91fa..30fb90f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,9 +23,11 @@ install(TARGETS bls_c384 DESTINATION lib)
install(TARGETS bls_c384_256 DESTINATION lib)
install(FILES ${BLS_HEADERS} DESTINATION include/bls)
+set(TEST_LIBS pthread gmpxx)
+
add_executable(bls_c256_test test/bls_c256_test.cpp)
-target_link_libraries(bls_c256_test bls_c256 pthread)
+target_link_libraries(bls_c256_test bls_c256 ${TEST_LIBS})
add_executable(bls_c384_test test/bls_c384_test.cpp)
-target_link_libraries(bls_c384_test bls_c384 pthread)
+target_link_libraries(bls_c384_test bls_c384 ${TEST_LIBS})
add_executable(bls_c384_256_test test/bls_c384_256_test.cpp)
-target_link_libraries(bls_c384_256_test bls_c384_256 pthread)
+target_link_libraries(bls_c384_256_test bls_c384_256 ${TEST_LIBS})