summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2018-08-11 09:09:44 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-09-01 19:02:09 +0200
commitd9576addaa0ca9588e484dba09dacc236b41a332 (patch)
tree2bc59dfe549facc5db3e355b7c328404b72b5ed8 /ConfigureChecks.cmake
parent5a68382903e8a21e43a50fa9f87b1968d3cb00b9 (diff)
downloadtdeadmin-d9576addaa0ca9588e484dba09dacc236b41a332.tar.gz
tdeadmin-d9576addaa0ca9588e484dba09dacc236b41a332.zip
First bach of cmake files in order to convert tdeadmin
from autotools to cmake building system. (cherry picked from commit 88073834d0052272dce61556b9508e66b84cd494)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake43
1 files changed, 43 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..426dc7a
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2013 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( WITH_GCC_VISIBILITY )
+ if( NOT UNIX )
+ tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
+ endif( NOT UNIX )
+ set( __KDE_HAVE_GCC_VISIBILITY 1 )
+ set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+endif( WITH_GCC_VISIBILITY )
+
+
+tde_setup_architecture_flags( )
+
+
+##### kcron
+
+if( BUILD_KCRON )
+ check_include_file( "sstream" HAVE_SSTREAM )
+endif( BUILD_KCRON )
+
+
+##### kuser
+
+if( BUILD_KUSER )
+ check_include_file( "unistd.h" HAVE_UNISTD_H )
+ check_include_file( "sys/stat.h" HAVE_SYS_STAT_H )
+endif( BUILD_KUSER )
+
+
+
+# required stuff
+find_package( TQt )
+find_package( TDE )