summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-01-25 13:27:34 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2017-01-25 13:31:04 +0900
commit73fb091fb0569ae41f73baecc25028530c4e6523 (patch)
tree27cfd2b387cf89459bb508fa13b19770836e70b5
parente717aafc8919a88f88eb358290f505b78008098a (diff)
downloadaul-1-73fb091fb0569ae41f73baecc25028530c4e6523.tar.gz
aul-1-73fb091fb0569ae41f73baecc25028530c4e6523.tar.bz2
aul-1-73fb091fb0569ae41f73baecc25028530c4e6523.zip
Fix versioning
Change-Id: I2b4ce17610e2abd3d3df4abbd9f0a907fa9edae0 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--CMakeLists.txt3
-rw-r--r--aul.pc.in4
2 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d3eda8d..083ca49b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,8 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+SET(EXEC_PREFIX "\${prefix}")
+SET(VERSION ${FULLVER})
PROJECT(aul C)
AUX_SOURCE_DIRECTORY(src SOURCES)
diff --git a/aul.pc.in b/aul.pc.in
index a27876df..2794ab40 100644
--- a/aul.pc.in
+++ b/aul.pc.in
@@ -1,12 +1,12 @@
# Package Information for pkg-config
-prefix=/usr
+prefix=@PREFIX@
exec_prefix=@EXEC_PREFIX@
libdir=@LIB_INSTALL_DIR@
includedir=@INCLUDE_INSTALL_DIR@
Name: libaul
-Description: new application utility library
+Description: new application utility library
Version: @VERSION@
Requires: bundle glib-2.0 xdgmime vconf dlog
Libs: -L${libdir} -laul