-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
598e9e6
commit bba8a5a
Showing
6 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ compile_commands.json | |
CTestTestfile.cmake | ||
_deps | ||
DartConfiguration.tcl | ||
VoyagerTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
add_executable(test doctest_setup.cpp test_main.cpp) | ||
# List the test source files | ||
set(TEST_FILES test_main.cpp doctest_setup.cpp) # Add any test files here | ||
|
||
target_link_libraries(test | ||
# Create an executable for the tests | ||
add_executable(VoyagerTests ${TEST_FILES}) | ||
|
||
# Link the test executable with the main project and Doctest | ||
# target_link_libraries(MyProjectTests PRIVATE MyProject doctest::doctest) | ||
target_link_libraries(VoyagerTests | ||
PUBLIC | ||
VoyagerLib | ||
PRIVATE | ||
doctest | ||
) | ||
|
||
target_compile_options(test PRIVATE -O2 -g) | ||
|
||
include(CTest) | ||
# Add the tests | ||
add_test(NAME VoyagerTests COMMAND VoyagerTests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters