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

Last change on this file since 248 was 248, checked in by Marek Kurdej, 11 years ago

Fixed: install PacpusConfig.cmake.in.

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9
10################################################################################
11# CMake
12install(
13 DIRECTORY ${PACPUS_CMAKE_DIR}
14 DESTINATION ${PACPUS_INSTALL_DIR}
15 PATTERN "in" EXCLUDE
16)
17configure_file("${PACPUS_CMAKE_DIR}/in/${PROJECT_NAME}Config.cmake.in" "${PACPUS_INSTALL_DIR}/${PROJECT_NAME}Config.cmake" @ONLY)
18
19################################################################################
20# INCLUDES
21install(
22 DIRECTORY
23 ${PACPUS_INCLUDE_DIR}
24 DESTINATION
25 ${PACPUS_INSTALL_DIR}
26)
27
28################################################################################
29# Installation of the 3rd party
30if(PACPUS_INSTALL_3RD)
31 install(
32 DIRECTORY
33 ${PACPUS_3RD_PARTY_DIR}
34 DESTINATION
35 ${PACPUS_INSTALL_DIR}
36 )
37endif()
38
39################################################################################
40# Installation of the documentation
41if(PACPUS_BUILD_DOC)
42 install(
43 DIRECTORY
44 ${CMAKE_BINARY_DIR}/doc/html
45 DESTINATION
46 ${PACPUS_INSTALL_DIR}/doc
47 )
48endif()
Note: See TracBrowser for help on using the repository browser.