OkularConfigureChecks.cmake 420 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 17 18

# at the end, output the configuration
configure_file(
   ${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake
   ${CMAKE_CURRENT_BINARY_DIR}/config-okular.h
)