diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2011-05-22 14:35:29 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2011-05-22 14:35:29 +0200 |
commit | 579afc307c9323bb40e9e1b41a734684c5bf1ed9 (patch) | |
tree | 1c6e67b00f9963c53efa144d1695f1a90c65e936 | |
parent | e2cd554d36e603c846d4f270c43497b741ba142c (diff) | |
download | uca-579afc307c9323bb40e9e1b41a734684c5bf1ed9.tar.gz uca-579afc307c9323bb40e9e1b41a734684c5bf1ed9.tar.bz2 uca-579afc307c9323bb40e9e1b41a734684c5bf1ed9.tar.xz uca-579afc307c9323bb40e9e1b41a734684c5bf1ed9.zip |
Install into /prefix/lib${LIB_SUFFIX}
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d17e098..a3e9329 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -114,8 +114,10 @@ add_library(uca SHARED ${uca_SRCS}) target_link_libraries(uca ${uca_LIBS}) # --- Install target ---------------------------------------------------------- +set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}") + install(TARGETS uca - LIBRARY DESTINATION lib${LIB_SUFFIX}) + LIBRARY DESTINATION ${LIB_INSTALL_DIR}) install(FILES uca.h DESTINATION include/uca) @@ -123,13 +125,13 @@ install(FILES uca.h # --- install pkg-config file set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix "\${prefix}") -set(libdir "\${exec_prefix}/lib") +set(libdir "${LIB_INSTALL_DIR}") set(includedir "\${prefix}/include") set(VERSION ${UCA_VERSION_STRING}) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/uca.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/uca.pc" @ONLY IMMEDIATE) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/uca.pc DESTINATION lib/pkgconfig) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/uca.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) set(CPACK_PACKAGE_DESCRIPTION "Unified Camera Access library") |