cmake config

This commit is contained in:
Barrett Ruth 2025-08-30 19:01:11 -05:00
parent 6f5ed47f3f
commit c2ff10026d
8 changed files with 186 additions and 164 deletions

17
tests/CMakeLists.txt Normal file
View file

@ -0,0 +1,17 @@
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.14.0
)
set(gtest_force_shared_crt
ON
CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
add_executable(test_bmath test_bmath.cc)
target_link_libraries(test_bmath PRIVATE bmath::bmath gtest_main)
include(GoogleTest)
gtest_discover_tests(test_bmath)