diff options
author | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-07-07 17:58:44 +0800 |
---|---|---|
committer | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-07-07 17:58:44 +0800 |
commit | 824303fb0b1e938050966b2d87c77d63240ecc2b (patch) | |
tree | 7c31e796f04915395cd787ad5689710d3758533a | |
parent | 93921a6e96fcfd714210374a56c823e7b3aaadd3 (diff) | |
download | ccsm-824303fb0b1e938050966b2d87c77d63240ecc2b.tar.gz ccsm-824303fb0b1e938050966b2d87c77d63240ecc2b.tar.bz2 |
Add CMake wrapper buildsystem
-rw-r--r-- | CMakeLists.txt | 39 | ||||
-rw-r--r-- | VERSION | 2 |
2 files changed, 40 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..50ece78 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,39 @@ +find_package (CompizConfig REQUIRED) +include (LibCompizConfigCommon) + +project (compizconfig-settings-manager) + +file (READ ${CMAKE_SOURCE_DIR}/VERSION COMPIZ_RELEASE_VERSION LIMIT 12 OFFSET 0) +string (STRIP ${COMPIZ_RELEASE_VERSION} COMPIZ_RELEASE_VERSION) + +set (VERSION ${COMPIZ_RELEASE_VERSION}) + +add_custom_target (python ALL + COMMAND python setup.py build + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + COMMENT "Generating Python Bytecode") + +add_custom_target (install + COMMAND python setup.py install --prefix=${CMAKE_INSTALL_PREFIX} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + COMMENT "Installing Python Files") + +add_custom_target (clean + COMMAND python setup.py clean + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + COMMENT "Cleaning Python Files") + +add_custom_target (uninstall + COMMAND python setup.py uninstall + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + COMMENT "Uninstalling Python Files") + +compiz_print_configure_header ("CompizConfig Settings Manager") +compiz_print_configure_footer () + +compiz_add_git_dist () +compiz_add_distcheck () +compiz_add_release () +compiz_add_release_signoff () + + @@ -1 +1 @@ -0.9.5 +0.9.5.0 |