summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-05-27 19:06:22 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2014-05-27 19:21:54 +0200
commit1272ee769caed1298b9d26b9f8e74a12b2d7c355 (patch)
treeeb68ba44ad7825998677f7a9fdefff94a2a44118 /CMakeLists.txt
parent69f57959d50cf08d063484551f15f6990582953d (diff)
downloadkiro-1272ee769caed1298b9d26b9f8e74a12b2d7c355.tar.gz
kiro-1272ee769caed1298b9d26b9f8e74a12b2d7c355.tar.bz2
kiro-1272ee769caed1298b9d26b9f8e74a12b2d7c355.tar.xz
kiro-1272ee769caed1298b9d26b9f8e74a12b2d7c355.zip
Updated CMake build scripts to build and install KIRO as library
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f77f52..a8a426b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,7 +35,7 @@ else()
set(LIB_INSTALL_DIR "lib")
endif()
-set(HEADER_INSTALL_DIR include/LIBKIRO)
+set(HEADER_INSTALL_DIR include/kiro)
add_subdirectory(src)
@@ -63,6 +63,9 @@ set(LIBKIRO_PKG_EXEC_PREFIX "${LIBKIRO_PKG_PREFIX}/bin")
set(LIBKIRO_PKG_LIBDIR "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
set(LIBKIRO_PKG_INCLUDEDIR "${LIBKIRO_PKG_PREFIX}/include")
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LIBKIRO.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/kiro.pc.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/kiro.pc" @ONLY IMMEDIATE)
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kiro.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
include(CPack)