-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests directory for building tests if BUILD_TESTING is enabled
- Loading branch information
1 parent
f4d2d60
commit d2d1cfc
Showing
3 changed files
with
14 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
add_executable(riddle_lib_tests test_riddle.cpp) | ||
target_link_libraries(riddle_lib_tests PRIVATE RiDDLe) | ||
|
||
add_test(NAME RIDDLE_LibTest COMMAND riddle_lib_tests WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <cassert> | ||
|
||
int main(int argc, char const *argv[]) | ||
{ | ||
return 0; | ||
} |