summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <SmSpillaz@gmail.com>2010-05-21 00:53:59 +0800
committerSam Spilsbury <SmSpillaz@gmail.com>2010-05-21 00:53:59 +0800
commitff1d449fd09e70e1ee8accae386614bd87a25cdc (patch)
treeb638d9e213a6918a1e100f65bf2bd95709e05559
parent9ccc3241e3c62ae586908eadad98b47432758a59 (diff)
downloadcompizconfig-backend-kconfig4-ff1d449fd09e70e1ee8accae386614bd87a25cdc.tar.gz
compizconfig-backend-kconfig4-ff1d449fd09e70e1ee8accae386614bd87a25cdc.tar.bz2
Added COMPIZ_DESTDIR support
-rw-r--r--src/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6c861b6..7b29852 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -6,6 +6,11 @@ include(KDE4Defaults)
include(FindPkgConfig)
include(MacroLibrary)
+set (CMAKE_SKIP_RPATH FALSE)
+
+option (COMPIZ_BUILD_WITH_RPATH "Leave as ON unless building packages" ON)
+set (COMPIZ_DESTDIR ${COMPIZ_DESTDIR} CACHE STRING "Leave blank unless building packages")
+
pkg_check_modules(CCS REQUIRED libcompizconfig)
QT4_ADD_DBUS_INTERFACE( kconfig4_kwin_SRCS org.kde.KWin.xml kwin_interface )
@@ -20,4 +25,4 @@ kde4_add_library(kconfig4 SHARED ${kconfig4_LIB_SRCS})
target_link_libraries(kconfig4 ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${CCS_LIBRARIES} X11)
-install(TARGETS kconfig4 DESTINATION ${CCS_LIBDIR}/compizconfig/backends)
+install(TARGETS kconfig4 DESTINATION ${COMPIZ_DESTDIR}${CCS_LIBDIR}/compizconfig/backends)