abacus: add cmake-based build system

This commit is contained in:
Bruno BELANYI 2021-09-01 19:00:51 +02:00
parent 549c1f0574
commit 331089d101
6 changed files with 76 additions and 0 deletions

16
tests/unit/CMakeLists.txt Normal file
View file

@ -0,0 +1,16 @@
find_package(GTest)
if (${GTest_FOUND})
include(GoogleTest)
add_executable(bignum_test bignum.cc)
target_link_libraries(bignum_test PRIVATE common_options)
target_link_libraries(bignum_test PRIVATE
bignum
GTest::gtest
GTest::gtest_main
)
gtest_discover_tests(bignum_test)
endif (${GTest_FOUND})