From 97fa9183c28f63dd37572a266a9c56e556c3660b Mon Sep 17 00:00:00 2001 From: Renaud G Date: Fri, 29 Apr 2022 11:27:05 +0200 Subject: Using BUILD_TESTING from CTest. --- CMakeLists.txt | 6 +++--- src/CMakeLists.txt | 4 ++-- 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() -- cgit v1.2.3-70-g09d2