From e0f071e72365e82ded55143fc68db759d12b8357 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Fri, 21 Sep 2018 14:45:51 +0200 Subject: add an option to build kcm-autostart, set by 'OFF' as default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gregory guy Signed-off-by: Slávek Banko (cherry picked from commit e208e9cac8f7b10e2a92468bd42027aef68c0ffb) --- CMakeLists.txt | 2 ++ kiosktool/CMakeLists.txt | 7 +++++-- kiosktool/kcms/CMakeLists.txt | 2 +- kiosktool/kcms/autostart/CMakeLists.txt | 13 +++++++++++++ 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 15f077d..739d036 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,8 @@ option( BUILD_ALL "Build all" ON ) option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) +option( BUILD_KCM_AUTOSTART "Build kcm autostart" OFF ) + ##### configure checks diff --git a/kiosktool/CMakeLists.txt b/kiosktool/CMakeLists.txt index 3ac1c09..c8bf8ea 100644 --- a/kiosktool/CMakeLists.txt +++ b/kiosktool/CMakeLists.txt @@ -1,5 +1,3 @@ -add_subdirectory( kcms ) - include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} @@ -91,3 +89,8 @@ install( FILES kiosktool.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) + + +###### kcm modules + +add_subdirectory( kcms ) diff --git a/kiosktool/kcms/CMakeLists.txt b/kiosktool/kcms/CMakeLists.txt index 4d25def..21a11a0 100644 --- a/kiosktool/kcms/CMakeLists.txt +++ b/kiosktool/kcms/CMakeLists.txt @@ -1 +1 @@ -add_subdirectory( autostart ) +tde_conditional_add_subdirectory( BUILD_KCM_AUTOSTART autostart ) diff --git a/kiosktool/kcms/autostart/CMakeLists.txt b/kiosktool/kcms/autostart/CMakeLists.txt index 722a583..505dfaf 100644 --- a/kiosktool/kcms/autostart/CMakeLists.txt +++ b/kiosktool/kcms/autostart/CMakeLists.txt @@ -12,6 +12,19 @@ link_directories( ) +##### warning of possible collision + +message( AUTHOR_WARNING + " \n" + " ---------------------------------------------------------- \n" + " *** NOTE *** \n" + " The build of kcm autostart module is not recommended \n" + " because there is also a separate kcm-autostart application \n" + " with which the module would be in collision. \n" + " ---------------------------------------------------------- \n" +) + + ##### kcm_autostart (kpart) tde_add_kpart( kcm_autostart AUTOMOC -- cgit v1.2.1