From fc033418a95d0eae238a4e2718b6429cdc160d0d Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 7 Jun 2023 16:54:22 +0200 Subject: conan: fix CMake generator selection --- source/CMakeLists.txt | 2 ++ source/tests/CMakeLists.txt | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index c84eda9..82beacd 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -5,6 +5,8 @@ project("newtype" DESCRIPTION "A library of types and functions to create strong type aliases" ) +enable_testing() + # Project Options option(BUILD_EXAMPLES "Build the library examples" OFF) diff --git a/source/tests/CMakeLists.txt b/source/tests/CMakeLists.txt index fe405db..2287a91 100644 --- a/source/tests/CMakeLists.txt +++ b/source/tests/CMakeLists.txt @@ -1,10 +1,9 @@ -enable_testing() - find_package("Catch2" "3.1" COMPONENTS "Catch2WithMain" REQUIRED ) +include("CTest") include("Catch") add_executable("${PROJECT_NAME}_tests" -- cgit v1.2.3