abacus: add cmake-based build system
This commit is contained in:
parent
549c1f0574
commit
331089d101
6 changed files with 76 additions and 0 deletions
16
tests/unit/CMakeLists.txt
Normal file
16
tests/unit/CMakeLists.txt
Normal 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})
|
||||
Loading…
Add table
Add a link
Reference in a new issue