- Timestamp:
- Jan 8, 2013, 5:00:30 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r7 r26 26 26 set(PACPUS_3RD_PARTY_DIR ${PACPUS_ROOT_DIR}/3rd) 27 27 set(PACPUS_CMAKE_DIR ${PACPUS_ROOT_DIR}/cmake) 28 set(PACPUS_DOC_DIR ${PACPUS_ROOT_DIR}/doc) 28 29 set(PACPUS_INCLUDE_DIR ${PACPUS_ROOT_DIR}/include/Pacpus) 29 30 set(PACPUS_SCRIPTS_DIR ${PACPUS_ROOT_DIR}/scripts) … … 71 72 72 73 # ======================================== 74 # Build the documentation if enabled 75 # ======================================== 76 if (PACPUS_BUILD_DOC) 77 add_subdirectory(${PACPUS_DOC_DIR}) 78 endif() 79 80 # ======================================== 73 81 # Pacpus Installation 74 82 # ======================================== … … 108 116 pacpus_info(" Logging enabled:" ${PACPUS_USE_LOG}) 109 117 pacpus_info(" Installation of 3rd party:" ${PACPUS_INSTALL_3RD}) 118 pacpus_info(" Documentation enabled:" ${PACPUS_BUILD_DOC}) 110 119 pacpus_info("") 111 120 if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") -
trunk/cmake/PacpusConfiguration.cmake
r3 r26 21 21 set(PACPUS_USE_LOG TRUE CACHE BOOL "Logging using log4cxx, the library is required") 22 22 set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party") 23 set(PACPUS_BUILD_DOC FALSE CACHE BOOL "Whether build the documentation (require Doxygen)") -
trunk/cmake/PacpusDependencies.cmake
r7 r26 45 45 endif() 46 46 endif() 47 48 # ======================================== 49 # Doxygen 50 # ======================================== 51 if (PACPUS_BUILD_DOC) 52 find_package(Doxygen) 53 if (NOT DOXYGEN_FOUND) 54 message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly") 55 endif() 56 endif() -
trunk/cmake/PacpusInstall.cmake
r7 r26 39 39 ) 40 40 endif() 41 42 # ======================================== 43 # Installation of the documentation 44 # ======================================== 45 if (PACPUS_BUILD_DOC) 46 install( 47 DIRECTORY 48 ${CMAKE_BINARY_DIR}/doc/html 49 DESTINATION 50 ${PACPUS_INSTALL_DIR}/doc 51 ) 52 endif()
Note:
See TracChangeset
for help on using the changeset viewer.