mirror of https://github.com/koreader/koreader
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.
40 lines
1009 B
CMake
40 lines
1009 B
CMake
12 years ago
|
PROJECT(kpvcrlib)
|
||
|
cmake_minimum_required(VERSION 2.6)
|
||
|
|
||
|
SET(CR_3RDPARTY_DIR crengine/thirdparty)
|
||
|
|
||
|
SET(CR3_PNG 1)
|
||
|
SET(CR3_JPEG 1)
|
||
|
|
||
|
SET(FREETYPE_INCLUDE_DIRS ${CR_3RDPARTY_DIR}/freetype/include)
|
||
|
SET(ANTIWORD_INCLUDE_DIR ${CR_3RDPARTY_DIR}/antiword)
|
||
|
SET(CHM_INCLUDE_DIRS ${CR_3RDPARTY_DIR}/chmlib)
|
||
|
SET(PNG_INCLUDE_DIR ${CR_3RDPARTY_DIR}/libpng)
|
||
|
|
||
|
INCLUDE_DIRECTORIES(
|
||
|
${FREETYPE_INCLUDE_DIRS}
|
||
|
${ANTIWORD_INCLUDE_DIR}
|
||
|
${CHM_INCLUDE_DIRS}
|
||
|
${PNG_INCLUDE_DIR}
|
||
|
)
|
||
|
|
||
|
ADD_DEFINITIONS(-DUSE_FONTCONFIG=0 -DUSE_FREETYPE=1 -DCR3_PATCH=1 -DNDEBUG=1)
|
||
|
|
||
|
#ADD_SUBDIRECTORY(crengine)
|
||
|
|
||
|
message("Will build patched LIBCHM library")
|
||
|
ADD_DEFINITIONS(-DCHM_SUPPORT_ENABLED=1)
|
||
|
ADD_SUBDIRECTORY(${CR_3RDPARTY_DIR}/chmlib)
|
||
|
|
||
|
message("Will build patched LIBPNG library")
|
||
|
ADD_SUBDIRECTORY(${CR_3RDPARTY_DIR}/libpng)
|
||
|
|
||
|
message("Will build patched ANTIWORD library")
|
||
|
ADD_DEFINITIONS(-DENABLE_ANTIWORD=1)
|
||
|
ADD_DEFINITIONS(-DCR3_ANTIWORD_PATCH=1)
|
||
|
ADD_SUBDIRECTORY(${CR_3RDPARTY_DIR}/antiword)
|
||
|
|
||
|
SET(GUI kpv)
|
||
|
ADD_SUBDIRECTORY(crengine/crengine)
|
||
|
|