summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-12-23 19:37:56 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-12-23 19:37:56 +0100
commit131597e5116cb56c1bb0b651f00778c74fdca194 (patch)
tree459e72d1b611e6411c172fa5ea96517d5e535660 /CMakeLists.txt
parent9d875f041854593e5b19bc63961da102f9fd754e (diff)
downloadlibuecc-131597e5116cb56c1bb0b651f00778c74fdca194.tar
libuecc-131597e5116cb56c1bb0b651f00778c74fdca194.zip
Add pkg-config file, prepare release 2v2
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 89cffe2..ebcbab4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 2.6)
project(LIBUECC C)
+set(PROJECT_VERSION 2)
set(CMAKE_MODULE_PATH ${LIBUECC_SOURCE_DIR})
@@ -10,5 +11,8 @@ include(UseDoxygen OPTIONAL)
add_subdirectory(src)
+configure_file(${LIBUECC_SOURCE_DIR}/libuecc.pc.in ${LIBUECC_BINARY_DIR}/libuecc.pc @ONLY)
+install(FILES ${LIBUECC_BINARY_DIR}/libuecc.pc DESTINATION "lib/pkgconfig")
+
FILE(GLOB include_files "${CMAKE_CURRENT_SOURCE_DIR}/include/libuecc/*.h")
-install(FILES ${include_files} DESTINATION include/libuecc)
+install(FILES ${include_files} DESTINATION "include/libuecc-${PROJECT_VERSION}/libuecc")