Changeset 26 in pacpusframework for trunk/cmake/PacpusDependencies.cmake


Ignore:
Timestamp:
Jan 8, 2013, 5:00:30 PM (12 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/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()
Note: See TracChangeset for help on using the changeset viewer.