Adding unit tests.

This commit is contained in:
YourWishes committed 2023-11-01 23:52:36 -05:00
1 parent c4032b4a84
commit f573ff8366
14 files changed
+158 -17

No files matched your search

+11 -1
View File
@@ -34,6 +34,10 @@ project(Dawn
LANGUAGES C CXX
)
# Setup tests
add_executable(dawntests)
target_link_libraries(dawntests PRIVATE Catch2::Catch2WithMain)
# Add tools
add_subdirectory(tools)
@@ -41,4 +45,10 @@ add_subdirectory(tools)
add_subdirectory(lib)
# Add Project Files
add_subdirectory(src)
add_subdirectory(src)
# Run tests
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
include(CTest)
include(Catch)
catch_discover_tests(dawntests)