summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-08-09 12:20:48 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-08-09 12:20:48 +0200
commitbf30a848ad7ac00218aab6589df7a19d868728cd (patch)
treed585e4bb57212708b379f1e84f260e513817485f /src/CMakeLists.txt
parentcad65db83f908afa02325bf3c8343b72544aa359 (diff)
parent2235306b05d29f22fd33eafdced3081f70ac7e37 (diff)
downloadlibuca-bf30a848ad7ac00218aab6589df7a19d868728cd.tar.gz
libuca-bf30a848ad7ac00218aab6589df7a19d868728cd.tar.bz2
libuca-bf30a848ad7ac00218aab6589df7a19d868728cd.tar.xz
libuca-bf30a848ad7ac00218aab6589df7a19d868728cd.zip
Merge branch 'iss-master'
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 02a1005..84b6199 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -144,10 +144,14 @@ set_target_properties(uca PROPERTIES
target_link_libraries(uca
${uca_LIBS})
+if (NOT DEFINED WITH_REFERENCE)
+ set(WITH_REFERENCE TRUE)
+endif()
+
# --- Build documentation -----------------------------------------------------
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}")
@@ -229,7 +233,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 ----------------------------------------------------------
@@ -278,4 +282,7 @@ set(CPACK_SOURCE_IGNORE_FILES ".git" "tags" ".bzr" ".swp")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "libuca-${UCA_VERSION_STRING}" CACHE INTERNAL "tarball basename")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${UCA_VERSION_STRING}-${CMAKE_SYSTEM_PROCESSOR}")
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../libuca.spec.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/../libuca.spec" @ONLY IMMEDIATE)
+
include(CPack)