aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2019-03-16 08:07:46 +0800
committerGitHub <noreply@github.com>2019-03-16 08:07:46 +0800
commitac02454d4c3859729fbf5c6eb72497b0b02c30d2 (patch)
treea521f7dfd4dae1cb4759f908cfe1c20f19a712d0
parente44538e17c21b16335caf5ae0eec9704ebeeae8c (diff)
parenta5ae5fe56816139c30bdf99e778a607c8524de9b (diff)
downloaddexon-bls-ac02454d4c3859729fbf5c6eb72497b0b02c30d2.tar
dexon-bls-ac02454d4c3859729fbf5c6eb72497b0b02c30d2.tar.gz
dexon-bls-ac02454d4c3859729fbf5c6eb72497b0b02c30d2.tar.bz2
dexon-bls-ac02454d4c3859729fbf5c6eb72497b0b02c30d2.tar.lz
dexon-bls-ac02454d4c3859729fbf5c6eb72497b0b02c30d2.tar.xz
dexon-bls-ac02454d4c3859729fbf5c6eb72497b0b02c30d2.tar.zst
dexon-bls-ac02454d4c3859729fbf5c6eb72497b0b02c30d2.zip
Merge pull request #31 from dfinity-lab/herumi-master-fix
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})