-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
62 lines (47 loc) · 1.81 KB
/
CMakeLists.txt
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
#========================================================================
#
# cmake-xpdf.txt
#
# CMake script for the Xpdf package.
#
# Copyright 2015 Glyph & Cog, LLC
#
#========================================================================
cmake_minimum_required(VERSION 2.8.8)
project(xpdf)
set(PNG_LIBRARY "${CMAKE_CURRENT_SOURCE_DIR}/LibPng")
set(PNG_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/LibPng/include")
set(PNG_PNG_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/LibPng/include")
set(ZLIB_LIBRARY "${CMAKE_CURRENT_SOURCE_DIR}/ZLib")
set(ZLIB_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ZLib/include")
set(FREETYPE_LIBRARY "${CMAKE_CURRENT_SOURCE_DIR}/FreeType")
set(FREETYPE_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/FreeType/include")
include(cmake-config.txt)
#isaque alterou aqui
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fvisibility=hidden")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fvisibility=hidden")
#export CFLAGS="-fPIC -fvisibility=hidden" export CXXFLAGS="-fPIC -fvisibility=hidden"
message(WARNING "CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}")
add_subdirectory(goo)
add_subdirectory(fofi)
add_subdirectory(splash)
add_subdirectory(xpdf)
add_subdirectory(xpdf-qt)
add_subdirectory(FreeType)
add_subdirectory(LibPng)
add_subdirectory(ZLib)
if (NOT Freetype_FOUND)
message(WARNING "Couldn't find FreeType -- will not build pdftoppm, pdftopng, pdftohtml, or xpdf.")
endif ()
if (NOT PNG_FOUND)
message(WARNING "Couldn't find libpng -- will not build pdftopng or pdftohtml.")
endif ()
if (NOT QT4_FOUND AND NOT Qt5Widgets_FOUND)
message(WARNING "Couldn't find Qt4 or Qt5 -- will not build xpdf.")
endif ()
if (NOT MULTITHREADED)
message(WARNING "Multithreading is disabled -- will not build xpdf.")
endif ()
if (NOT USE_EXCEPTIONS)
message(WARNING "C++ exceptions are disabled -- will not build xpdf.")
endif ()