aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2023-06-07 16:54:22 +0200
committerFelix Morgner <felix.morgner@gmail.com>2023-06-07 16:54:22 +0200
commitfc033418a95d0eae238a4e2718b6429cdc160d0d (patch)
treeaf7aa5f27a9135e069d259932e386e10a1bbf74b /source
parenta984ee355ea8bcdeeb6f5ff2dc1e17c566044223 (diff)
downloadnewtype-fc033418a95d0eae238a4e2718b6429cdc160d0d.tar.xz
newtype-fc033418a95d0eae238a4e2718b6429cdc160d0d.zip
conan: fix CMake generator selection
Diffstat (limited to 'source')
-rw-r--r--source/CMakeLists.txt2
-rw-r--r--source/tests/CMakeLists.txt3
2 files changed, 3 insertions, 2 deletions
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"