summaryrefslogtreecommitdiff
path: root/cpp/docs
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-10-30 18:51:41 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-10-30 18:51:41 +0000
commit7fe3d481d21561a405008583a866f2d9b001ea8f (patch)
tree834835cb35b48676941565fe03055b463dc9e351 /cpp/docs
parent05952199a01eb9e7f8128e6cb0663a888b51ead3 (diff)
downloadqpid-python-7fe3d481d21561a405008583a866f2d9b001ea8f.tar.gz
NO-JIRA: shamelessly stole some cmake improvements from proton:
- Don't generate the docs all the time (unless we have to) - Take a guess as to whether to use lib or lib64 to install libraries (This can be overridden in distribution package builds) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1403812 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/docs')
-rw-r--r--cpp/docs/api/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/docs/api/CMakeLists.txt b/cpp/docs/api/CMakeLists.txt
index 1c2e72394c..828d706b91 100644
--- a/cpp/docs/api/CMakeLists.txt
+++ b/cpp/docs/api/CMakeLists.txt
@@ -28,13 +28,15 @@ if (GEN_DOXYGEN)
${CMAKE_CURRENT_BINARY_DIR}/user.doxygen)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/developer.doxygen.in
${CMAKE_CURRENT_BINARY_DIR}/developer.doxygen)
- add_custom_target (docs-user-api ALL COMMAND ${DOXYGEN_EXECUTABLE} user.doxygen)
- add_custom_target (docs-developer ALL COMMAND ${DOXYGEN_EXECUTABLE} developer.doxygen)
+ add_custom_target (docs-user-api COMMAND ${DOXYGEN_EXECUTABLE} user.doxygen)
+ add_custom_target (docs-developer COMMAND ${DOXYGEN_EXECUTABLE} developer.doxygen)
+ add_dependencies (docs docs-developer docs-user-api)
# HTML files are generated to ./html - put those in the install.
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
DESTINATION ${QPID_INSTALL_DOCDIR}/api/html
- COMPONENT ${QPID_COMPONENT_CLIENT_INCLUDE})
+ COMPONENT ${QPID_COMPONENT_CLIENT_INCLUDE}
+ ${OPTIONAL_ARG})
if (CPACK_GENERATOR STREQUAL "NSIS")
set (CPACK_NSIS_MENU_LINKS
"${QPID_INSTALL_HTMLDIR}/index.html" "Qpid C++ API Documentation"