This repository was archived by the owner on Apr 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ endif()
1212
1313# ---- Dependencies ----
1414
15- find_package (Catch2 REQUIRED )
15+ find_package (Catch2 CONFIG REQUIRED )
1616
1717include (Catch )
1818
@@ -21,13 +21,13 @@ target_link_libraries(catch_main PUBLIC Catch2::Catch2)
2121target_link_libraries (catch_main PRIVATE myproject::project_options )
2222
2323# Provide a simple smoke test to make sure that the CLI works and can display a --help message
24- add_test (NAME cli.has_help COMMAND myproject:: intro --help )
24+ add_test (NAME cli.has_help COMMAND intro --help )
2525
2626# Provide a test to verify that the version being reported from the application
2727# matches the version given to CMake. This will be important once you package
2828# your program. Real world shows that this is the kind of simple mistake that is easy
2929# to make, but also easy to test for.
30- add_test (NAME cli.version_matches COMMAND myproject:: intro --version )
30+ add_test (NAME cli.version_matches COMMAND intro --version )
3131set_tests_properties (cli.version_matches PROPERTIES PASS_REGULAR_EXPRESSION "${PROJECT_VERSION } " )
3232
3333add_executable (tests tests.cpp )
You can’t perform that action at this time.
0 commit comments