summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2019-01-04 23:04:03 +0100
committergregory guy <[email protected]>2019-01-04 23:04:03 +0100
commit4a479930bbaafbeeaaf525507eb0af47ea2adcd2 (patch)
tree08cb28d533bcd21ed01da07d734990d612bef09a /ConfigureChecks.cmake
parentec7d3bd017cec514f434457c101a6982a17cb32d (diff)
downloadkcmldap-4a479930bbaafbeeaaf525507eb0af47ea2adcd2.tar.gz
kcmldap-4a479930bbaafbeeaaf525507eb0af47ea2adcd2.zip
conversion to the cmake building system
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake39
1 files changed, 39 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..63df149
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,39 @@
+###########################################
+# #
+# Improvements and feedback are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+###########################################
+
+
+# required stuff
+find_package( TQt )
+find_package( TDE )
+
+tde_setup_architecture_flags( )
+
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
+
+##### check for gcc visibility support
+
+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 )
+
+
+##### check for tdeldap
+
+find_library( HAVE_LIBTDELDAP tdeldap )
+if( HAVE_LIBTDELDAP )
+ set( LIBTDELDAP_LIBRARIES "tdeldap" )
+ else()
+ tde_message_fatal( "libtdeldap is requested, but was not found on your system" )
+endif( )