Skip to content

Commit

Permalink
Add test installed version project
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Mar 11, 2024
1 parent d7360c3 commit 8b71324
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/myproj/tests/CMakeLists.txt
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)

0 comments on commit 8b71324

Please sign in to comment.