diff options
| author | 2022-04-29 11:27:05 +0200 | |
|---|---|---|
| committer | 2022-04-29 11:27:05 +0200 | |
| commit | 97fa9183c28f63dd37572a266a9c56e556c3660b (patch) | |
| tree | 2487261c8acc390837a19e19c826429e0fc2566e | |
| parent | b5c91675be7b61b90d4f189f8e44337a6eb53fab (diff) | |
| download | OneRoll-97fa9183c28f63dd37572a266a9c56e556c3660b.tar.gz OneRoll-97fa9183c28f63dd37572a266a9c56e556c3660b.zip | |
Using BUILD_TESTING from CTest.
| -rw-r--r-- | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | 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() |