summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-08-07 13:55:21 +0800
committerPeng Wu <alexepico@gmail.com>2012-08-07 13:55:21 +0800
commit114d71e34b1ef47e4f4e4b39294349754b2c9968 (patch)
treee50ed1c9b44c9b72cc080bb26b79405131fef0c1 /CMakeLists.txt
parentae01f6123774073d6f3504098ec6e6d2955620ea (diff)
downloadlibpinyin-114d71e34b1ef47e4f4e4b39294349754b2c9968.zip
libpinyin-114d71e34b1ef47e4f4e4b39294349754b2c9968.tar.gz
libpinyin-114d71e34b1ef47e4f4e4b39294349754b2c9968.tar.xz
fixes cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1cd357e..09421f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,6 +37,8 @@ set (
${LIBPINYIN_VERSION_MAJOR}.${LIBPINYIN_VERSION_MINOR}.${LIBPINYIN_VERSION_REVISION}${version_suffix}
)
+set (VERSION ${LIBPINYIN_VERSION})
+
######## Validation
include(CheckIncludeFileCXX)
@@ -103,6 +105,12 @@ set (DIR_INCLUDE_LIBPINYIN ${DIR_INCLUDE}/libpinyin-${LIBPINYIN_BINARY_VERSION})
######## Configuration
+set (prefix ${DIR_PREFIX})
+set (exec_prefix ${DIR_PREFIX})
+set (libdir ${DIR_LIBRARY})
+set (includedir ${DIR_INCLUDE})
+set (datadir ${DIR_SHARE})
+
configure_file(
libpinyin.pc.in
libpinyin.pc