Adding unit tests.
This commit is contained in:
@@ -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)
|
Reference in New Issue
Block a user