Commit 24c56ef3 authored by Pino Toscano's avatar Pino Toscano

move most of the okular cmake configure stuff within the okular source tree

svn path=/trunk/playground/graphics/okular/; revision=641188
parent 1ac45783
project(okular)
option(
OKULAR_FORCE_DRM
"Forces okular to check for DRM to decide if you can copy/print protected pdf. (default=no)"
OFF
)
if(OKULAR_FORCE_DRM STREQUAL "ON")
set(_OKULAR_FORCE_DRM 1)
else(OKULAR_FORCE_DRM STREQUAL "ON")
set(_OKULAR_FORCE_DRM 0)
endif(OKULAR_FORCE_DRM STREQUAL "ON")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-okular.h
)
add_subdirectory( ui )
add_subdirectory( shell )
add_subdirectory( generators )
include(OkularConfigureChecks.cmake)
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/okular/ui/painter_agg2/
......
option(
OKULAR_FORCE_DRM
"Forces okular to check for DRM to decide if you can copy/print protected pdf. (default=no)"
OFF
)
if(OKULAR_FORCE_DRM STREQUAL "ON")
set(_OKULAR_FORCE_DRM 1)
else(OKULAR_FORCE_DRM STREQUAL "ON")
set(_OKULAR_FORCE_DRM 0)
endif(OKULAR_FORCE_DRM STREQUAL "ON")
# at the end, output the configuration
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-okular.h
)
include (MacroLogFeature)
macro_optional_find_package(Poppler)
macro_optional_find_package(CHM)
macro_optional_find_package(DjVuLibre)
macro_optional_find_package(TIFF)
macro_optional_find_package(Freetype)
# let's enable the generators properly configured
if(POPPLER_FOUND)
......@@ -37,3 +45,8 @@ add_subdirectory(ooo)
add_subdirectory(fictionbook)
add_subdirectory(comicbook)
macro_log_feature(POPPLER_FOUND "Poppler-Qt4" "Support for PDF files in okular" "http://poppler.freedesktop.org" FALSE "0.5.4" "")
macro_log_feature(CHM_FOUND "libCHM" "Support for CHM files in okular" "http://morte.jedrea.com/~jedwin/projects/chmlib" FALSE "" "")
macro_log_feature(DJVULIBRE_FOUND "libdjvulibre" "Support for DjVu files in okular" "http://djvulibre.djvuzone.org" FALSE "3.5.17" "")
macro_log_feature(TIFF_FOUND "libTIFF" "Support for TIFF files in okular" "http://www.remotesensing.org/libtiff/" FALSE "" "")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment