summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-06-18 19:16:53 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-06-18 19:16:53 +0800
commita9f8816428d6c5cb3de9bcb63fdfd781c0cf7ab8 (patch)
treefb1a28908553bb6bc2aea6134aca91f73b6450b6 /CMakeLists.txt
parent8962ca8eade8f638363edb348f39d4f83132b64a (diff)
downloadmobilebling-a9f8816428d6c5cb3de9bcb63fdfd781c0cf7ab8.tar.gz
mobilebling-a9f8816428d6c5cb3de9bcb63fdfd781c0cf7ab8.tar.bz2
Add COMPIZ_ENABLE_PACKAGING option so that distros with default settings for prefix, etc don't override
what the use has specified with CMAKE_INSTALL_PREFIX Also remove install (libcompiz.so), we use compiz_opt_install_file anyways for it
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f34afe..92ca824 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@ project (compiz)
set (CMAKE_MODULE_PATH_ORIG ${CMAKE_MODULE_PATH})
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
include (CompizCommon)
-include (CompizPackage)
+include (CompizPackage)
include (cmake/base.cmake)
include (CheckFunctionExists)
@@ -23,11 +23,19 @@ set (VERSION ${COMPIZ_VERSION_MAJOR}.${COMPIZ_VERSION_MINOR}.${COMPIZ_VERSION_MI
set (DECOR_INTERFACE_VERSION 20080901)
-set (prefix ${CMAKE_INSTALL_PREFIX} CACHE PATH "prefix")
-set (exec_prefix ${CMAKE_INSTALL_PREFIX}/bin CACHE PATH "bindir")
-set (libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "libdir")
-set (includedir ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "includedir")
-set (datadir ${CMAKE_INSTALL_PREFIX}/share CACHE PATH "datadir")
+if (COMPIZ_PACKAGING_ENABLED)
+ set (prefix ${CMAKE_INSTALL_PREFIX} CACHE PATH "prefix")
+ set (exec_prefix ${CMAKE_INSTALL_PREFIX}/bin CACHE PATH "bindir")
+ set (libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "libdir")
+ set (includedir ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "includedir")
+ set (datadir ${CMAKE_INSTALL_PREFIX}/share CACHE PATH "datadir")
+else (COMPIZ_PACKAGING_ENABLED)
+ set (prefix ${CMAKE_INSTALL_PREFIX} )
+ set (exec_prefix ${CMAKE_INSTALL_PREFIX}/bin )
+ set (libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
+ set (includedir ${CMAKE_INSTALL_PREFIX}/include )
+ set (datadir ${CMAKE_INSTALL_PREFIX}/share )
+endif (COMPIZ_PACKAGING_ENABLED)
set (compiz_plugindir ${libdir}/compiz)
set (compiz_imagedir ${datadir}/compiz/images)