~f0ma/cuneiform-linux/devel

« back to all changes in this revision

Viewing changes to cuneiform_src/CMakeLists.txt

  • Committer: Stanislav Ivanov
  • Date: 2017-06-07 15:03:51 UTC
  • Revision ID: ivstdm@gmail.com-20170607150351-dlzbzl54zvs57z57
New command line interface with multipage support and input image filtering.
Alpha state. No checks for build in other platform. Tests is missing.
Magick++ and C++0x is requried.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
add_definitions(-D_USE_RVERLINE_)
37
37
 
38
 
find_package(ImageMagick COMPONENTS Magick++)
39
 
if(ImageMagick_Magick++_FOUND)
40
 
    set(USE_MAGICK TRUE)
41
 
    include_directories(${ImageMagick_Magick++_INCLUDE_DIR})
42
 
    message(STATUS "ImageMagick++ found at ${ImageMagick_Magick++_INCLUDE_DIR}.")
43
 
    set(cli_ext_libs ${ImageMagick_Magick++_LIBRARY})
44
 
    include_directories(${ImageMagick_INCLUDE_DIRS})
45
 
    add_definitions(-DMAGICKCORE_QUANTUM_DEPTH=16)
46
 
    add_definitions(-DMAGICKCORE_HDRI_ENABLE=0)
47
 
else()
48
 
    set(USE_MAGICK FALSE)
49
 
    message(STATUS "ImageMagick++ not found. Only uncompressed BMP images supported.")
50
 
endif()
 
38
find_package(ImageMagick COMPONENTS Magick++ REQUIRED)
 
39
 
 
40
set(USE_MAGICK TRUE)
 
41
include_directories(${ImageMagick_Magick++_INCLUDE_DIR})
 
42
message(STATUS "ImageMagick++ found at ${ImageMagick_Magick++_INCLUDE_DIR}.")
 
43
set(cli_ext_libs ${ImageMagick_Magick++_LIBRARY})
 
44
include_directories(${ImageMagick_INCLUDE_DIRS})
 
45
add_definitions(-DMAGICKCORE_QUANTUM_DEPTH=16)
 
46
add_definitions(-DMAGICKCORE_HDRI_ENABLE=0)
 
47
#add_definitions(-D_DEBUG)
 
48
 
51
49
 
52
50
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Kern/include/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/Kern/include/config.h)
53
51
include_directories(${CMAKE_CURRENT_BINARY_DIR}/Kern/include)