File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ FetchContent_Declare( cppsafeio
2323FetchContent_MakeAvailable(cppsafeio)
2424
2525add_subdirectory (src)
26+ add_subdirectory (tests)
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.14)
2- project (Tests LANGUAGES CXX )
2+ include (CTest )
33
4- add_executable (Tests tests.cpp testfunctions.cpp)
4+ add_executable (CppMenu-AutomatedTests automated-tests.cpp)
5+ target_link_libraries (CppMenu-AutomatedTests ${CPP_MENU} )
6+ add_test (NAME CppMenu-Testing COMMAND CppMenu-AutomatedTests)
57
6- get_filename_component (PARENT_DIR ../ ABSOLUTE )
7- add_subdirectory (${PARENT_DIR} ${CMAKE_CURRENT_SOURCE_DIR} /build /bin)
8-
9- target_include_directories (Tests PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
10- target_link_libraries (Tests ${CPP_MENU} )
8+ add_executable (CppMenu-Tests tests.cpp testfunctions.cpp)
9+ target_link_libraries (CppMenu-Tests ${CPP_MENU} )
10+ target_include_directories (CppMenu-Tests PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
You can’t perform that action at this time.
0 commit comments