aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
-rw-r--r--src/CMakeLists.txt4
2 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c538e7..7198d92 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,12 +2,12 @@ cmake_minimum_required(VERSION 3.16)
project(diceparser VERSION 1.9.0 DESCRIPTION "Parser of dice command")
+include(CTest)
-option(BUILD_CLI OFF)
-option(TESTS OFF)
+option(BUILD_CLI ON)
option(NO_PAINTER_OPERATOR OFF)
-IF(TESTS)
+IF(BUILD_TESTING)
enable_testing()
ENDIF()
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d200d8a..e0010c5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,6 +4,6 @@ cmake_minimum_required(VERSION 3.16)
add_subdirectory(libparser)
add_subdirectory(bin)
-if(TESTS)
+if(BUILD_TESTING)
add_subdirectory(tests)
-endif() \ No newline at end of file
+endif()