summaryrefslogtreecommitdiffstats
path: root/chalk/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-09-30 00:04:56 +0300
committerPhilippe Mavridis <philippe.mavridis@yandex.com>2025-05-15 21:00:25 +0300
commit04e86613f67d171cc965fce64a4310c0d25c98e1 (patch)
tree08a85d43bc40568f94259601339ccd7e1de11773 /chalk/ConfigureChecks.cmake
parentcf85b9c285a2b9baa87c9d0cb9d683b48e82a475 (diff)
downloadkoffice-feat/cmake-port.tar.gz
koffice-feat/cmake-port.zip
WIP: CMake portfeat/cmake-port
Signed-off-by: Philippe Mavridis <philippe.mavridis@yandex.com>
Diffstat (limited to 'chalk/ConfigureChecks.cmake')
-rw-r--r--chalk/ConfigureChecks.cmake65
1 files changed, 65 insertions, 0 deletions
diff --git a/chalk/ConfigureChecks.cmake b/chalk/ConfigureChecks.cmake
new file mode 100644
index 000000000..6a7e6fa1e
--- /dev/null
+++ b/chalk/ConfigureChecks.cmake
@@ -0,0 +1,65 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+check_symbol_exists("powf" "math.h" HAVE_MATH_POWF)
+
+### XInput ####################################################################
+pkg_search_module(XINPUT xi)
+if (NOT XINPUT_FOUND)
+ tde_message_fatal("XInput is required for Chalk, but was not found")
+endif()
+
+### LittleCMS #################################################################
+pkg_search_module(LCMS lcms)
+if (NOT LCMS_FOUND)
+ tde_message_fatal("lcms1 is required for Chalk, but was not found")
+endif()
+
+### OpenGL ####################################################################
+check_include_file("GL/gl.h" HAVE_GL_H)
+check_include_file("GL/glu.h" HAVE_GLU_H)
+
+if (NOT HAVE_GL_H OR NOT HAVE_GLU_H)
+ tde_message_fatal("OpenGL is required for Chalk, but headers are missing")
+endif()
+
+### EXIF ######################################################################
+pkg_search_module(EXIF libexif)
+if (NOT EXIF_FOUND)
+ message(WARNING "libexif is missing, "
+ "Chalk won't be able to import/export JPEG files")
+endif()
+
+### JPEG ######################################################################
+find_package(JPEG)
+if (NOT JPEG_FOUND)
+ message(WARNING "libjpeg is missing, "
+ "Chalk won't be able to import/export JPEG files")
+endif()
+
+### PNG #######################################################################
+find_package(PNG)
+if (NOT PNG_FOUND)
+ message(WARNING "libpng is missing, "
+ "Chalk won't be able to import/export PNG files")
+endif()
+
+### TIFF ######################################################################
+find_package(TIFF)
+if (NOT TIFF_FOUND)
+ message(WARNING "libtiff is missing, "
+ "Chalk won't be able to import/export TIFF files")
+endif()
+
+### poppler-tqt ###############################################################
+pkg_search_module(POPPLER poppler-tqt)
+if (NOT POPPLER_FOUND)
+ message(WARNING "poppler-tqt is missing, "
+ "Chalk won't be able to import PDF files")
+endif()
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file