From 1272ee769caed1298b9d26b9f8e74a12b2d7c355 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Tue, 27 May 2014 19:06:22 +0200 Subject: Updated CMake build scripts to build and install KIRO as library --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3