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

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

Added: PacpusConfig.cmake.in to install.

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