mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 23:27:49 +01:00
24 lines
581 B
CMake
24 lines
581 B
CMake
include(FetchContent)
|
|
FetchContent_Declare(
|
|
googletest
|
|
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
|
|
)
|
|
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|
FetchContent_MakeAvailable(googletest)
|
|
|
|
enable_testing()
|
|
include(GoogleTest)
|
|
|
|
add_executable(
|
|
EventTests
|
|
src/EventTests.cpp
|
|
)
|
|
|
|
target_link_libraries(
|
|
EventTests PRIVATE
|
|
GTest::gtest_main cbsdk
|
|
)
|
|
|
|
gtest_discover_tests(EventTests DISCOVERY_TIMEOUT 600)
|