summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-10-06 23:38:09 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-10-06 23:38:09 +0000
commit2d59aac810656ae12cf946f2684592e123781655 (patch)
tree1d04ed3f811330919904ef94cf01deadd5117df5 /CMakeLists.txt
parentcc31165d9c6f11e6b8e139bb204b645c1df91683 (diff)
downloadtdelibs-2d59aac810656ae12cf946f2684592e123781655.tar.gz
tdelibs-2d59aac810656ae12cf946f2684592e123781655.zip
[kdelibs] setup PKG_CONFIG_PATH
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1183323 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt24
1 files changed, 15 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 941edae2d..afda1707d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,19 +44,19 @@ OPTION( WITH_HSPELL "Enable hspell support" OFF )
##### paths setup ###############################
if( NOT BIN_INSTALL_DIR )
- set( BIN_INSTALL_DIR bin )
+ set( BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin )
endif ( NOT BIN_INSTALL_DIR )
if( NOT LIB_INSTALL_DIR )
- set( LIB_INSTALL_DIR lib )
+ set( LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib )
endif( NOT LIB_INSTALL_DIR )
if( NOT INCLUDE_INSTALL_DIR )
- set( INCLUDE_INSTALL_DIR include )
+ set( INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include )
endif( NOT INCLUDE_INSTALL_DIR )
if( NOT SHARE_INSTALL_DIR )
- set( SHARE_INSTALL_DIR share )
+ set( SHARE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share )
endif( NOT SHARE_INSTALL_DIR )
if( NOT ICONS_INSTALL_DIR )
@@ -72,11 +72,11 @@ if( NOT PLUGIN_INSTALL_DIR )
endif( NOT PLUGIN_INSTALL_DIR )
if( NOT SERVICES_INSTALL_DIR )
- set( SERVICES_INSTALL_DIR share/services )
+ set( SERVICES_INSTALL_DIR ${SHARE_INSTALL_DIR}/services )
endif( NOT SERVICES_INSTALL_DIR )
if( NOT DATA_INSTALL_DIR )
- set( DATA_INSTALL_DIR share/apps )
+ set( DATA_INSTALL_DIR ${SHARE_INSTALL_DIR}/apps )
endif( NOT DATA_INSTALL_DIR )
if( NOT HTML_INSTALL_DIR )
@@ -88,15 +88,15 @@ if( NOT CONFIG_INSTALL_DIR )
endif( NOT CONFIG_INSTALL_DIR )
if( NOT LOCALE_INSTALL_DIR )
- set( LOCALE_INSTALL_DIR share/locale )
+ set( LOCALE_INSTALL_DIR ${SHARE_INSTALL_DIR}/locale )
endif( NOT LOCALE_INSTALL_DIR )
if( NOT PKGCONFIG_INSTALL_DIR )
- set( PKGCONFIG_INSTALL_DIR lib/pkgconfig )
+ set( PKGCONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/pkgconfig )
endif( NOT PKGCONFIG_INSTALL_DIR )
if( NOT DCOP_PATH )
- set( DCOP_PATH ${CMAKE_INSTALL_PREFIX}/${BIN_INSTALL_DIR} )
+ set( DCOP_PATH ${BIN_INSTALL_DIR} )
endif( NOT DCOP_PATH )
if( NOT KDEDIR )
@@ -116,6 +116,12 @@ if( NOT XDG_MENUDIR )
endif( NOT XDG_MENUDIR )
+##### set PKG_CONFIG_PATH #######################
+
+set( ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_PATH}:${PKGCONFIG_INSTALL_DIR}:${LIB_INSTALL_DIR}/pkgconfig:$ENV{PKG_CONFIG_PATH}" )
+message( STATUS $ENV{PKG_CONFIG_PATH} )
+
+
##### include our cmake modules #################
include( TDEMacros )