-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
3 changed files
with
9,253 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
cmake_minimum_required(VERSION 3.30) | ||
cmake_minimum_required(VERSION 3.31) | ||
|
||
project(35-catch2 CXX) | ||
|
||
add_library(amalgamated_catch2 STATIC catch_amalgamated.cpp | ||
add_library(amalgamated_catch2 OBJECT catch_amalgamated.cpp | ||
catch_amalgamated.hpp) | ||
target_compile_features(amalgamated_catch2 PRIVATE cxx_std_23) | ||
add_library(fakeit INTERFACE) | ||
target_include_directories(fakeit INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
add_executable(35-catch2 main.cxx) | ||
target_link_libraries(35-catch2 PRIVATE amalgamated_catch2) | ||
target_compile_features(35-catch2 PRIVATE cxx_std_23) | ||
|
||
add_executable(35-catch2-fakeit main_moc.cxx) | ||
target_link_libraries(35-catch2-fakeit PRIVATE amalgamated_catch2 fakeit) | ||
|
||
enable_testing() | ||
|
||
add_test(NAME 35-catch2 COMMAND 35-catch2) | ||
add_test(NAME 35-catch2-fakeit COMMAND 35-catch2-fakeit) |
Oops, something went wrong.