-
Notifications
You must be signed in to change notification settings - Fork 65
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 a37408c
Showing
4 changed files
with
64 additions
and
12 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
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,35 @@ | ||
add_executable(test doctest_setup.cpp test_main.cpp) | ||
# add_executable(test doctest_setup.cpp test_main.cpp) | ||
|
||
target_link_libraries(test | ||
# target_link_libraries(test | ||
# PUBLIC | ||
# VoyagerLib | ||
# PRIVATE | ||
# doctest | ||
# ) | ||
|
||
# target_compile_options(test PRIVATE -O2 -g) | ||
|
||
# include(CTest) | ||
|
||
# Find the Doctest package (assumes Doctest is installed or provided as a submodule) | ||
# find_package(doctest REQUIRED) | ||
|
||
# List the test source files | ||
set(TEST_FILES test_main.cpp doctest_setup.cpp) # Replace with your actual test files | ||
|
||
# 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) | ||
# Add the tests | ||
add_test(NAME VoyagerTests COMMAND VoyagerTests) | ||
|
||
include(CTest) | ||
# include(CTest) |
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