From 6db8f2be03aed9128919f979fc1e3f8391a6914d Mon Sep 17 00:00:00 2001 From: armatusmiles <akurotych@gmail.com> Date: Sun, 26 Aug 2018 18:12:11 +0300 Subject: [PATCH] [+] Check if exists submodule libdap-test --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06c50a1..54547c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,10 @@ add_definitions ("-D_GNU_SOURCE") set(CMAKE_C_FLAGS "-std=c11 -Wall -Wextra") -enable_testing() +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/libdap-test/CMakeLists.txt") + enable_testing() + add_subdirectory(test) +endif() add_subdirectory(core) add_subdirectory(crypto) -add_subdirectory(test) -- GitLab