Skip to content

Commit

Permalink
Automatically register Catch2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meisekimiu committed Jan 24, 2024
1 parent dc4f96b commit 23d8571
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ FetchContent_MakeAvailable(raylib)
add_executable(adagio ${SOURCES})
target_link_libraries(adagio raylib)


add_subdirectory(third_party/entt)
add_subdirectory(third_party/Catch2)
add_executable(adagio_test ${TESTS})
target_link_libraries(adagio_test PRIVATE Catch2::Catch2 raylib EnTT::EnTT)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/third_party/Catch2/contrib)
include(CTest)
include(Catch)
catch_discover_tests(adagio_test)

0 comments on commit 23d8571

Please sign in to comment.