Skip to content

Commit

Permalink
add option ADD_EXE_TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
pureland committed Jan 28, 2019
1 parent a86403e commit ce91ecf
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ endif( APPLE )

if(BLS_SWAP_G)
set( CMAKE_CXX_FLAGS BLS_SWAP_G )
endif(BLS_SWAP_G)
# GMP
find_path(GMP_INCLUDE_DIR NAMES gmp.h)
find_library(GMP_LIBRARIES NAMES gmp libgmp)
Expand Down Expand Up @@ -51,11 +52,13 @@ install(TARGETS bls_c384 DESTINATION lib)
install(TARGETS bls_c384_256 DESTINATION lib)
install(FILES ${BLS_HEADERS} DESTINATION include/bls)

add_executable(bls_c256_test test/bls_c256_test.cpp)
target_link_libraries(bls_c256_test bls_c256)
add_executable(bls_c384_test test/bls_c384_test.cpp)
target_link_libraries(bls_c384_test bls_c384)
add_executable(bls_c384_256_test test/bls_c384_256_test.cpp)
target_link_libraries(bls_c384_256_test bls_c384_256)
add_executable(bls_test test/bls_test.cpp)
target_link_libraries(bls_test bls_c256)
if(ADD_EXE_TEST)
add_executable(bls_c256_test test/bls_c256_test.cpp)
target_link_libraries(bls_c256_test bls_c256)
add_executable(bls_c384_test test/bls_c384_test.cpp)
target_link_libraries(bls_c384_test bls_c384)
add_executable(bls_c384_256_test test/bls_c384_256_test.cpp)
target_link_libraries(bls_c384_256_test bls_c384_256)
add_executable(bls_test test/bls_test.cpp)
target_link_libraries(bls_test bls_c256)
endif(ADD_EXE_TEST)

0 comments on commit ce91ecf

Please sign in to comment.