summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2013-10-15 16:26:13 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-10-15 16:26:13 +0200
commit1a22301f46db807500b77119ae0132b9a3f876c5 (patch)
treeebf70d60bf7341685d1c4f6eb945e8d36baab9b2 /ConfigureChecks.cmake
parent6d9f2a4901eda474254a5d62a8c3701c2067ea58 (diff)
downloadtdeaddons-1a22301f46db807500b77119ae0132b9a3f876c5.tar.gz
tdeaddons-1a22301f46db807500b77119ae0132b9a3f876c5.zip
Initial cmake conversion
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake69
1 files changed, 69 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..8f1c622
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,69 @@
+#################################################
+#
+# (C) 2013 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### check for gcc visibility support #########
+# FIXME
+# This should check for [T]Qt3 visibility support
+
+if( WITH_GCC_VISIBILITY )
+ if( NOT UNIX )
+ tde_message_fatal(FATAL_ERROR "\ngcc 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( )
+
+
+##### kicker-applets ############################
+
+if( BUILD_KICKER_APPLETS )
+ check_include_file( "fcntl.h" HAVE_FCNTL_H )
+
+ if( WITH_XMMS )
+ # FIXME: xmms is realy outdated, so check if this is really works
+ check_library_exists( xmms_remote_is_running xmms HAVE_XMMSLIB )
+ check_symbol_exist( xmms_remote_is_running "xmms/xmmsctrl.h" HAVE_XMMS )
+ if( HAVE_XMMS_LIB AND HAVE_XMMS )
+ set( XMMS_LIBRARIES xmms )
+ else( HAVE_XMMS )
+ tde_message_fatal( "xmms is required, but was not found on your system" )
+ endif( HAVE_XMMS )
+ endif( WITH_XMMS )
+endif( BUILD_KICKER_APPLETS )
+
+
+##### konq-plugins ##############################
+
+if( BUILD_KONQ_PLUGINS )
+ check_include_file( "pty.h" HAVE_PTY_H )
+ check_include_file( "terminos.h" HAVE_TERMIOS_H )
+ check_include_file( "stropts.h" HAVE_STROPTS )
+ check_include_file( "sys/ioctl.h" HAVE_SYS_IOCTL_H )
+ check_include_file( "libutil.h" HAVE_LIBUTIL_H )
+ check_include_file( "util.h" HAVE_UTIL_H )
+
+ # arts
+ if( WITH_ARTS )
+ pkg_search_module( ARTS arts )
+ if( NOT ARTS_FOUND )
+ message( FATAL_ERROR "\naRts is requested, but was not found on your system" )
+ endif( )
+ endif( WITH_ARTS )
+endif( BUILD_KONQ_PLUGINS )
+
+
+# required stuff
+find_package( TQt )
+find_package( TDE )