aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 739bceab5e6..5bb85d960dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-cmake_minimum_required(VERSION 3.8)
+cmake_minimum_required(VERSION 3.11)
# add this options before PROJECT keyword
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
@@ -90,3 +90,12 @@ add_subdirectory(dep)
# add core sources
add_subdirectory(src)
+
+include(CTest)
+if(BUILD_TESTING)
+ list(APPEND CMAKE_MODULE_PATH
+ "${Catch2_SOURCE_DIR}/contrib")
+ include(Catch)
+
+ add_subdirectory(tests)
+endif()