source: pacpusframework/trunk/cmake/PacpusInstall.cmake@ 26

Last change on this file since 26 was 26, checked in by sgosseli, 11 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: 1.3 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9
10# ========================================
11# CMake files
12# ========================================
13install(
14 DIRECTORY
15 ${PACPUS_ROOT_DIR}/cmake
16 DESTINATION
17 ${PACPUS_INSTALL_DIR}
18)
19
20# ========================================
21# Include files
22# ========================================
23install(
24 DIRECTORY
25 ${PACPUS_INCLUDE_DIR}
26 DESTINATION
27 ${PACPUS_INSTALL_DIR}/include
28)
29
30# ========================================
31# Installation of the 3rd party
32# ========================================
33if (PACPUS_INSTALL_3RD)
34 install(
35 DIRECTORY
36 ${PACPUS_3RD_PARTY_DIR}
37 DESTINATION
38 ${PACPUS_INSTALL_DIR}
39 )
40endif()
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 TracBrowser for help on using the repository browser.