This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
ecg-prog-filtered/u01/CMakeLists.txt

21 lines
466 B
CMake
Raw Normal View History

2023-04-22 14:45:43 +02:00
# SPDX-License-Identifier: GPL-3.0-or-later
2023-04-21 22:46:18 +02:00
cmake_minimum_required(VERSION 3.20)
project(ecg_tree)
2023-04-21 22:46:18 +02:00
add_library(tree node.cpp)
2023-04-21 22:46:18 +02:00
add_executable(main main.cpp)
target_link_libraries(main tree)
2023-04-21 22:46:18 +02:00
find_package(Catch2 3)
if(Catch2_FOUND)
add_executable(tests tests.cpp)
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain tree)
2023-04-21 22:46:18 +02:00
include(CTest)
include(Catch)
catch_discover_tests(tests)
endif()
install(TARGETS main)
install(TARGETS tree DESTINATION lib)