1
# cmake/modules/installdirs.cmake
3
# Copyright (C) 2006 Alan W. Irwin
5
# This file is part of PLplot.
7
# PLplot is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU Library General Public License as published
9
# by the Free Software Foundation; version 2 of the License.
11
# PLplot is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU Library General Public License for more details.
16
# You should have received a copy of the GNU Library General Public License
17
# along with the file PLplot; if not, write to the Free Software
18
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
# Module for determining all installation directories for PLplot.
22
# Note, use absolute install locations only since relative ones are
23
# automatically prefixed with ${CMAKE_INSTALL_PREFIX} which may destroy
24
# the fine-tuning of installation locations that we desire.
26
# Cached install locations following what is done for the autotools configure
27
# script: (CMAKE_INSTALL_SBINDIR, CMAKE_INSTALL_LIBEXECDIR,
28
# CMAKE_INSTALL_SHAREDSTATEDIR, CMAKE_INSTALL_LOCALSTATEDIR, and
29
# CMAKE_INSTALL_OLDINCLUDEDIR not set because PLplot does not use those
33
CMAKE_INSTALL_EXEC_PREFIX
34
${CMAKE_INSTALL_PREFIX}
35
CACHE PATH "install location for architecture-dependent files"
40
${CMAKE_INSTALL_EXEC_PREFIX}/bin
41
CACHE PATH "install location for user executables"
46
${CMAKE_INSTALL_PREFIX}/share
47
CACHE PATH "install location for read-only architecture-independent data"
52
${CMAKE_INSTALL_EXEC_PREFIX}/lib
53
CACHE PATH "install location for object code libraries"
57
CMAKE_INSTALL_INCLUDEDIR
58
${CMAKE_INSTALL_PREFIX}/include
59
CACHE PATH "install location for C header files"
64
${CMAKE_INSTALL_DATADIR}/info
65
CACHE PATH "install location for info documentation"
70
${CMAKE_INSTALL_DATADIR}/man
71
CACHE PATH "install location for man documentation"
74
# Configured PLplot install locations determined from user-updatable
75
# cached values above.
78
set(DATA_DIR ${CMAKE_INSTALL_DATADIR}/${PACKAGE}${VERSION})
81
set(LIB_DIR ${CMAKE_INSTALL_LIBDIR})
84
set(INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${PACKAGE})
87
set(BIN_DIR ${CMAKE_INSTALL_BINDIR})
89
# Shared library path.
90
set(SHLIB_DIR ${CMAKE_INSTALL_LIBDIR})
93
set(TCL_DIR ${CMAKE_INSTALL_DATADIR}/${PACKAGE}${VERSION}/tcl)
95
# Ada source files (*.adb, *.ads) (following recommendations in
96
# http://www.ada-france.org/debian/debian-ada-policy.html
97
set(ADA_INCLUDE_DIR ${CMAKE_INSTALL_DATADIR}/ada/adainclude/plplotada${LIB_TAG})
99
# Ada library information files (*.ali) (following recommendations in
100
# http://www.ada-france.org/debian/debian-ada-policy.html
101
set(ADA_LIB_DIR ${CMAKE_INSTALL_LIBDIR}/ada/adalib/plplotada${LIB_TAG})
104
set(DRV_DIR ${CMAKE_INSTALL_LIBDIR}/${PACKAGE}${VERSION}/drivers${LIB_TAG})
107
set(DOC_DIR ${CMAKE_INSTALL_DATADIR}/doc/${PACKAGE})
110
set(INFO_DIR ${CMAKE_INSTALL_INFODIR})
113
set(MAN_DIR ${CMAKE_INSTALL_MANDIR})
115
# Other path-related variables.
117
# Absolute path of top-level build directory.
118
set(BUILD_DIR ${CMAKE_BINARY_DIR})
120
# Absolute path of top-level source directory.
121
set(SOURCE_DIR ${CMAKE_SOURCE_DIR})
123
# The following *_CMD variables are needed in
124
# examples/*/Makefile.examples.cmake
126
set(LIB_DIR_CMD "-L${LIB_DIR}")
127
set(INCLUDE_DIR_CMD "-I${INCLUDE_DIR}")