summaryrefslogtreecommitdiffstats
path: root/chalk/ConfigureChecks.cmake
blob: 6a7e6fa1ea0412af38f931406cf08a81537e6816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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;