Add GNUInstallDirs for standard installation directories
Distributions are given standard variables for already existing hooks. Multiarch libdirs is taken care of automagically. Raises minimum cmake version by a little.
This commit is contained in:
parent
5292728740
commit
e7b77afb66
|
@ -7,7 +7,7 @@
|
||||||
# For this purpose you can define a CMake var: OPENJPEG_NAMESPACE to whatever you like
|
# For this purpose you can define a CMake var: OPENJPEG_NAMESPACE to whatever you like
|
||||||
# e.g.:
|
# e.g.:
|
||||||
# set(OPENJPEG_NAMESPACE "GDCMOPENJPEG")
|
# set(OPENJPEG_NAMESPACE "GDCMOPENJPEG")
|
||||||
cmake_minimum_required(VERSION 2.8.2)
|
cmake_minimum_required(VERSION 2.8.5)
|
||||||
|
|
||||||
if(COMMAND CMAKE_POLICY)
|
if(COMMAND CMAKE_POLICY)
|
||||||
cmake_policy(SET CMP0003 NEW)
|
cmake_policy(SET CMP0003 NEW)
|
||||||
|
@ -105,6 +105,8 @@ endif()
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Install directories
|
# Install directories
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
# Build DOCUMENTATION (not in ALL target and only if Doxygen is found)
|
# Build DOCUMENTATION (not in ALL target and only if Doxygen is found)
|
||||||
option(BUILD_DOC "Build the HTML documentation (with doxygen if available)." OFF)
|
option(BUILD_DOC "Build the HTML documentation (with doxygen if available)." OFF)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue