1 From 2629af4ed00d7ca65359178203d80fb146901cdb Mon Sep 17 00:00:00 2001
2 From: Daniel Fullmer <danielrf12@gmail.com>
3 Date: Fri, 3 Jul 2020 21:00:45 -0700
4 Subject: [PATCH 1/2] Fix CMakeLists
7 CMakeLists.txt | 12 ++++++++----
8 1 file changed, 8 insertions(+), 4 deletions(-)
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index e218279..4341de9 100644
14 @@ -57,6 +57,7 @@ endif(JPEG_FOUND)
17 set(HAVE_JASPER_LIB 1)
18 + set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${JASPER_LIBRARY})
21 # paths from willuslib/wgs.c
22 @@ -71,9 +72,12 @@ else()
23 message(STATUS "Could NOT find ghostscript executable")
24 endif(GHOSTSCRIPT_EXECUTABLE)
29 +pkg_check_modules(GSL gsl)
32 + include_directories(SYSTEM ${GSL_INCLUDEDIR})
33 + set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${GSL_LDFLAGS})
36 # libfreetype6 (>= 2.3.9), libjbig2dec0, libjpeg8 (>= 8c), libx11-6, libxext6, zlib1g (>= 1:1.2.0)
37 # MUPDF_STATIC_LDFLAGS misses mupdf-js-none, and doubles libs ...
38 @@ -85,7 +89,7 @@ if(MUPDF_FOUND)
39 include_directories(SYSTEM ${MUPDF_INCLUDEDIR})
40 message(STATUS "mupdf libraries: ${MUPDF_LDFLAGS}")
41 set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${MUPDF_LDFLAGS}
42 - -lmupdf-js-none -lopenjpeg -ljbig2dec -ljpeg -lfreetype