summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-08-08 10:21:15 +0200
committerVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-08-08 10:21:15 +0200
commit2235306b05d29f22fd33eafdced3081f70ac7e37 (patch)
tree7a6102e315a061615f9a623476b336f5ed50ede1 /src/CMakeLists.txt
parent642a047ce60c9e071b9815d11ea9a81761598c9c (diff)
downloadlibuca-2235306b05d29f22fd33eafdced3081f70ac7e37.tar.gz
libuca-2235306b05d29f22fd33eafdced3081f70ac7e37.tar.bz2
libuca-2235306b05d29f22fd33eafdced3081f70ac7e37.tar.xz
libuca-2235306b05d29f22fd33eafdced3081f70ac7e37.zip
added custom spec file
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)