c-paper-terminal/tests/CMakeLists.txt
2025-03-30 18:46:31 +01:00

17 lines
456 B
CMake

Include(FetchContent)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.4.0 # or a later release
)
FetchContent_MakeAvailable(Catch2)
add_executable(tests test_VirtualScreen.cpp screens/VirtualScreens/test_BufferIterator.cpp)
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)
target_link_libraries(tests PRIVATE VirtualScreen)
include(CTest)
include(Catch)
catch_discover_tests(tests)