| 123456789101112131415161718192021222324252627282930313233 |
- # Tests for SmartBotic CRM
- # Fetch GoogleTest
- include(FetchContent)
- FetchContent_Declare(
- googletest
- GIT_REPOSITORY https://github.com/google/googletest.git
- GIT_TAG v1.14.0
- )
- # Prevent overriding the parent project's compiler/linker settings
- set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
- FetchContent_MakeAvailable(googletest)
- enable_testing()
- # ============================================================================
- # Database Tests
- # ============================================================================
- add_executable(database_tests
- database/snapshot_test.cpp
- )
- target_compile_options(database_tests PRIVATE ${SMARTBOTIC_CXX_WARNINGS})
- target_link_libraries(database_tests
- PRIVATE
- smartbotic::database
- GTest::gtest_main
- )
- include(GoogleTest)
- gtest_discover_tests(database_tests)
|