summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2018-09-21 14:45:51 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-09-22 15:05:22 +0200
commite208e9cac8f7b10e2a92468bd42027aef68c0ffb (patch)
tree0172ccf74defe1e6d7eadb406474b3587a5b5350
parentfcf89e1e2ef3f427c78edc0cc258484422f962d3 (diff)
downloadkiosktool-e208e9cac8f7b10e2a92468bd42027aef68c0ffb.tar.gz
kiosktool-e208e9cac8f7b10e2a92468bd42027aef68c0ffb.zip
add an option to build kcm-autostart, set by 'OFF' as default
Signed-off-by: gregory guy <g-gregory@gmx.fr> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--CMakeLists.txt2
-rw-r--r--kiosktool/CMakeLists.txt7
-rw-r--r--kiosktool/kcms/CMakeLists.txt2
-rw-r--r--kiosktool/kcms/autostart/CMakeLists.txt13
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