From 0209706acc088e84e2655747d7dff6d6a4e69b91 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Tue, 11 Aug 2015 10:30:39 -0700 Subject: Add option to disable tests --- CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) mode change 100644 => 100755 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100644 new mode 100755 index a58f105..7a22064 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,11 +13,17 @@ set(PROJECT_VERSION_MINOR 21) set(PROJECT_VERSION_PATCH 0) set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} ) +option(CMARK_TESTS "Build cmark tests and enable testing" ON) + add_subdirectory(src) -add_subdirectory(api_test) +if(CMARK_TESTS) + add_subdirectory(api_test) +endif() add_subdirectory(man) -enable_testing() -add_subdirectory(test testdir) +if(CMARK_TESTS) + enable_testing() + add_subdirectory(test testdir) +endif() if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING -- cgit v1.2.3