source: pacpusframework/trunk/doc/CMakeLists.txt@ 28

Last change on this file since 28 was 26, checked in by sgosseli, 12 years ago

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 size: 834 bytes
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9
10if(PACPUS_BUILD_DOC)
11 # Debug
12 pacpus_info("coucou")
13 # Configure the template Doxyfile for our specific project
14 configure_file(doxyfile.in ${CMAKE_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
15 # Add a custom target to run Doxygen when ever the project is built
16 add_custom_target (
17 documentation
18 COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
19 SOURCES ${CMAKE_BINARY_DIR}/Doxyfile)
20endif()
Note: See TracBrowser for help on using the repository browser.