summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-12-19 20:05:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-12-19 20:08:46 +0900
commitab12cfe230b06ba2a4505e681d7b8ce6ea35fb34 (patch)
treea6bb5fc600136016a2e3fd309ce6b3ad8a6c7cc9 /ConfigureChecks.cmake
parent796d4dc1ab15ce7f898d3fc0014e4b64a0be155d (diff)
downloadpolkit-agent-tde-ab12cfe230b06ba2a4505e681d7b8ce6ea35fb34.tar.gz
polkit-agent-tde-ab12cfe230b06ba2a4505e681d7b8ce6ea35fb34.zip
Updated cmake files to allow building the package, although it is just a dummy package (not functional).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake34
1 files changed, 34 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..3a4e77f
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,34 @@
+###########################################
+# #
+# 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)
+
+tde_setup_largefiles( )
+
+
+##### check for gcc visibility support
+
+if( WITH_GCC_VISIBILITY )
+ tde_setup_gcc_visibility( )
+endif( WITH_GCC_VISIBILITY )
+
+
+##### check for polkit-tqt
+
+pkg_search_module( POLKIT_TQT polkit-tqt )
+if( NOT POLKIT_TQT_FOUND )
+ tde_message_fatal( "polkit-tqt is required, but was not found on your system" )
+endif( )
+