Skip to content
Snippets Groups Projects
Unverified Commit c23b1e58 authored by Markus Prim's avatar Markus Prim Committed by GitHub
Browse files

Merge pull request #66 from olifre/gnu-install-dirs

CMake: Use GNUInstallDirs to derive install directory defaults.
parents 2b004e1c 2a618efb
Branches
No related tags found
No related merge requests found
......@@ -12,14 +12,16 @@ SET( ${PROJECT_NAME}_VERSION_MAJOR 2 )
SET( ${PROJECT_NAME}_VERSION_MINOR 2 )
SET( ${PROJECT_NAME}_VERSION_PATCH 0 )
include(GNUInstallDirs)
# install destinations can be passed via the command line:
# cmake -DLIBRARY_OUTPUT_DIRECTORY:PATH=.... -DINCLUDE_OUTPUT_DIRECTORY:PATH=....
# otherwise, set default install destinations
IF(NOT DEFINED LIBRARY_OUTPUT_DIRECTORY)
set( LIBRARY_OUTPUT_DIRECTORY ./lib )
set( LIBRARY_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR} )
ENDIF()
IF(NOT DEFINED INCLUDE_OUTPUT_DIRECTORY)
set( INCLUDE_OUTPUT_DIRECTORY ./include )
set( INCLUDE_OUTPUT_DIRECTORY ${CMAKE_INSTALL_INCLUDEDIR} )
ENDIF()
# define path to macros and settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment