OkularConfigureChecks.cmake 554 Bytes
Newer Older
1 2 3 4 5 6

option(
   OKULAR_FORCE_DRM
   "Forces okular to check for DRM to decide if you can copy/print protected pdf. (default=no)"
   OFF
)
Pino Toscano's avatar
Pino Toscano committed
7
if (OKULAR_FORCE_DRM)
8
   set(_OKULAR_FORCE_DRM 1)
Pino Toscano's avatar
Pino Toscano committed
9
else (OKULAR_FORCE_DRM)
10
   set(_OKULAR_FORCE_DRM 0)
Pino Toscano's avatar
Pino Toscano committed
11
endif (OKULAR_FORCE_DRM)
12

13 14 15 16
# Check whether malloc_trim(3) is supported.
include(CheckSymbolExists)
check_symbol_exists(malloc_trim "malloc.h" HAVE_MALLOC_TRIM)

17 18 19 20 21 22
# at the end, output the configuration
configure_file(
   ${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake
   ${CMAKE_CURRENT_BINARY_DIR}/config-okular.h
)