diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-26 14:41:38 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-26 14:41:38 +0100 |
| commit | f4f436870f9ce0368d81c504e93b012e3928a851 (patch) | |
| tree | 61ea2ac873997600ca0aeb29669e9fef6f65bfe0 /tests/CMakeLists.txt | |
| parent | bb914f047b0d96464f3e55234907df4e7c416e97 (diff) | |
- Debug parser (carriage returns)
- Improve test framework
Diffstat (limited to 'tests/CMakeLists.txt')
| -rw-r--r-- | tests/CMakeLists.txt | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4b556aa..30f26d3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,8 +1,20 @@ -include_directories(./catch3/) # Copy asset files file(COPY pgn_files DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) -# Run tests -add_executable(pgnp_tests tests.cpp ./catch3/catch_amalgamated.cpp) -target_link_libraries(pgnp_tests pgnp) +# Configure catch3 +include_directories(./catch3/) +add_library(catch3 SHARED ./catch3/catch_amalgamated.cpp) + +# Add tests +add_executable(pgnp_valid valid.cpp) +target_link_libraries(pgnp_valid pgnp catch3) +add_test(PGNP_Valid_PGN_Set pgnp_valid) + +add_executable(pgnp_str str.cpp) +target_link_libraries(pgnp_str pgnp catch3) +add_test(PGNP_STR_Compliant_Set pgnp_str) + +add_executable(pgnp_combined combined.cpp) +target_link_libraries(pgnp_combined pgnp catch3) +add_test(PGNP_Combined_Set pgnp_combined)
\ No newline at end of file |
