summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-08-02 14:49:11 +0200
committerVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-08-02 14:49:11 +0200
commitd5881265ee7c3995508aaa84275be498e30c5c8b (patch)
treed94c8635210f0c532e00e6613e1f150eaf474fe8 /src/CMakeLists.txt
parente244962e7ea14bdd3fd06fd247bf91c9c75e24b6 (diff)
downloaduca-d5881265ee7c3995508aaa84275be498e30c5c8b.tar.gz
uca-d5881265ee7c3995508aaa84275be498e30c5c8b.tar.bz2
uca-d5881265ee7c3995508aaa84275be498e30c5c8b.tar.xz
uca-d5881265ee7c3995508aaa84275be498e30c5c8b.zip
added variables with which building of test/control and reference documentation can be disabled
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index acba8a4..3c80afd 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -162,8 +162,11 @@ target_link_libraries(uca
# --- Build documentation -----------------------------------------------------
+if (NOT DEFINED WITH_REFERENCE)
+ set(WITH_REFERENCE TRUE)
+endif()
pkg_check_modules(GTK_DOC gtk-doc)
-if(GTK_DOC_FOUND)
+if(GTK_DOC_FOUND AND WITH_REFERENCE)
option(WITH_GTK_DOC "Build documentation" ON)
if (WITH_GTK_DOC)
set(docs_dir "${CMAKE_CURRENT_BINARY_DIR}")
@@ -245,7 +248,7 @@ if(GTK_DOC_FOUND)
install(FILES ${reference_files} DESTINATION share/gtk-doc/html/uca)
endif()
-endif(GTK_DOC_FOUND)
+endif(GTK_DOC_FOUND AND WITH_REFERENCE)
# --- Install target ----------------------------------------------------------