You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.4 KiB
CMake
65 lines
2.4 KiB
CMake
###############################################################################
|
|
# 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; |