Changeset 26 in pacpusframework for trunk/CMakeLists.txt


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r7 r26  
    2626set(PACPUS_3RD_PARTY_DIR    ${PACPUS_ROOT_DIR}/3rd)
    2727set(PACPUS_CMAKE_DIR        ${PACPUS_ROOT_DIR}/cmake)
     28set(PACPUS_DOC_DIR          ${PACPUS_ROOT_DIR}/doc)
    2829set(PACPUS_INCLUDE_DIR      ${PACPUS_ROOT_DIR}/include/Pacpus)
    2930set(PACPUS_SCRIPTS_DIR      ${PACPUS_ROOT_DIR}/scripts)
     
    7172
    7273# ========================================
     74# Build the documentation if enabled
     75# ========================================
     76if (PACPUS_BUILD_DOC)
     77  add_subdirectory(${PACPUS_DOC_DIR})
     78endif()
     79
     80# ========================================
    7381# Pacpus Installation
    7482# ========================================
     
    108116pacpus_info("    Logging enabled:" ${PACPUS_USE_LOG})
    109117pacpus_info("    Installation of 3rd party:" ${PACPUS_INSTALL_3RD})
     118pacpus_info("    Documentation enabled:" ${PACPUS_BUILD_DOC})
    110119pacpus_info("")
    111120if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
Note: See TracChangeset for help on using the changeset viewer.