summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <junghans@votca.org>2017-06-17 02:03:11 (GMT)
committerMathis Rosenhauer <rosenhauer@dkrz.de>2017-06-22 07:11:00 (GMT)
commite03befe623669aa353b147bdf02a7938c70abc8e (patch)
tree091ee6fca2e1ee17349c1b13629ecdcf3b4ada66
parent351b61ebdfd2a3c02c7227df4a13d106d79418f8 (diff)
downloadlibaec-e03befe623669aa353b147bdf02a7938c70abc8e.zip
libaec-e03befe623669aa353b147bdf02a7938c70abc8e.tar.gz
libaec-e03befe623669aa353b147bdf02a7938c70abc8e.tar.bz2
cmake: add multilib support
Follow GNU convention for install directories, especially using `lib64` instead of `lib`. Signed-off-by: Christoph Junghans <junghans@votca.org>
-rw-r--r--src/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5f71703..f53bf22 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -28,6 +28,7 @@ IF(UNIX)
)
ENDIF(UNIX)
+INCLUDE(GNUInstallDirs)
IF(WIN32)
INSTALL(TARGETS aec sz
RUNTIME
@@ -39,19 +40,19 @@ IF(WIN32)
ELSE(WIN32)
INSTALL(TARGETS aec sz
LIBRARY
- DESTINATION lib
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE
- DESTINATION lib
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT libraries
)
ENDIF(WIN32)
INSTALL(FILES libaec.h szlib.h
- DESTINATION include
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT headers
)
INSTALL(TARGETS aec_client
RUNTIME
- DESTINATION bin
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT applications
)