2007-03-10 13:15:49 +00:00
|
|
|
|
|
|
|
option(
|
|
|
|
OKULAR_FORCE_DRM
|
|
|
|
"Forces okular to check for DRM to decide if you can copy/print protected pdf. (default=no)"
|
|
|
|
OFF
|
|
|
|
)
|
2007-11-25 14:10:18 +00:00
|
|
|
if (OKULAR_FORCE_DRM)
|
2007-03-10 13:15:49 +00:00
|
|
|
set(_OKULAR_FORCE_DRM 1)
|
2007-11-25 14:10:18 +00:00
|
|
|
else (OKULAR_FORCE_DRM)
|
2007-03-10 13:15:49 +00:00
|
|
|
set(_OKULAR_FORCE_DRM 0)
|
2007-11-25 14:10:18 +00:00
|
|
|
endif (OKULAR_FORCE_DRM)
|
2007-03-10 13:15:49 +00:00
|
|
|
|
|
|
|
# at the end, output the configuration
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-okular.h
|
|
|
|
)
|
|
|
|
|