-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
d7360c3
commit 8b71324
Showing
1 changed file
with
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.21...3.29) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
|
||
project(myproj_test VERSION 0.2.0 LANGUAGES CXX) | ||
|
||
find_package(myproj_header_only_lib 0.2.0 CONFIG REQUIRED) | ||
|
||
# Executable | ||
add_executable(main ../src/main/main.cpp) | ||
target_link_libraries( | ||
main | ||
PRIVATE myproj_header_only_lib::lib # | ||
myproj_header_only_lib::myproj_project_options | ||
myproj_header_only_lib::myproj_project_warnings | ||
) | ||
|
||
## tests | ||
enable_testing() | ||
add_test(NAME main COMMAND main) |