Changeset 26 in pacpusframework for trunk/cmake


Ignore:
Timestamp:
01/08/13 17:00:30 (11 years ago)
Author:
sgosseli
Message:

Add the generation of the documentation in the build system.
To build the documentation on Windows:

cmake .. -DPACPUS_INSTALL_DIR=C:\Foo -DPACPUS_BUILD_DOC=TRUE
msbuild doc\documentation.vcxproj
msbuild INSTALL.vcxproj /p:Configuration=Release

Note: doxygen is required, of course.

Location:
trunk/cmake
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusConfiguration.cmake

    r3 r26  
    2121set(PACPUS_USE_LOG      TRUE  CACHE BOOL "Logging using log4cxx, the library is required")
    2222set(PACPUS_INSTALL_3RD  FALSE CACHE BOOL "Installation of the 3rd party")
     23set(PACPUS_BUILD_DOC    FALSE CACHE BOOL "Whether build the documentation (require Doxygen)")
  • trunk/cmake/PacpusDependencies.cmake

    r7 r26  
    4545  endif()
    4646endif()
     47
     48# ========================================
     49# Doxygen
     50# ========================================
     51if (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()
     56endif()
  • trunk/cmake/PacpusInstall.cmake

    r7 r26  
    3939  )
    4040endif()
     41
     42# ========================================
     43# Installation of the documentation
     44# ========================================
     45if (PACPUS_BUILD_DOC)
     46  install(
     47    DIRECTORY
     48      ${CMAKE_BINARY_DIR}/doc/html
     49    DESTINATION
     50      ${PACPUS_INSTALL_DIR}/doc
     51  )
     52endif()
Note: See TracChangeset for help on using the changeset viewer.