commit f08e35656c78345e2fe54bcb404e002c5003997c
parent f13b984936dfa3d1197604de59418eda73bdde23
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 22 May 2017 16:11:34 +0200
Add the NO_MAN option
When enabled, the man pages are not generated.
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -16,7 +16,9 @@
cmake_minimum_required(VERSION 2.8)
project(solstice C)
enable_testing()
+
option(NO_TEST "Do not build tests" OFF)
+option(NO_MAN "Do not build man pages" OFF)
set(SOLSTICE_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src/)
@@ -57,7 +59,9 @@ include_directories(
################################################################################
# Build subprojects
################################################################################
-add_subdirectory(doc)
+if(NOT NO_MAN)
+ add_subdirectory(doc)
+endif()
add_subdirectory(parser)
add_subdirectory(receivers)