summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-09-30 00:04:56 +0300
committerMavridis Philippe <mavridisf@gmail.com>2024-09-30 00:16:43 +0300
commit28f28e0af6f7a49a651e28afd3c951c022c58b06 (patch)
tree2dcae47d3464b975c7e48a0f6a7deabaf46ad429 /ConfigureChecks.cmake
parenta616663e125e9f6f2966ee85e7b37ebc85eb2967 (diff)
downloadkoffice-feat/cmake-port.tar.gz
koffice-feat/cmake-port.zip
WIP: CMake portfeat/cmake-port
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake37
1 files changed, 37 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 00000000..0fe57b17
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,37 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+### TQt/TDE ###################################################################
+find_package(TQt)
+find_package(TDE)
+tde_setup_architecture_flags()
+tde_setup_largefiles()
+
+### Big Endian ################################################################
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
+### System headers ############################################################
+check_include_file("unistd.h" HAVE_UNISTD_H)
+check_include_file("sys/param.h" HAVE_SYS_PARAM_H)
+check_include_file("floatingpoint.h" HAVE_FLOATINGPOINT_H)
+check_include_file("paths.h" HAVE_PATHS_H)
+
+### KOffice library ##########################################################
+if (BUILD_CHALK OR BUILD_KARBON OR BUILD_KIVIO OR BUILD_KPRESENTER)
+ set(BUILD_KOPAINTER ON)
+endif()
+
+include(lib/ConfigureChecks.cmake)
+include(filters/ConfigureChecks.cmake)
+
+### KOffice applications ######################################################
+if (BUILD_CHALK)
+ include(chalk/ConfigureChecks.cmake)
+endif()
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file