Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 15th, 2015  |  syntax: None  |  size: 0.84 KB  |  views: 68  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -137,11 +137,16 @@
  4.      set_target_properties (kxstitch PROPERTIES LINK_FLAGS -pg)
  5.  endif (WITH_PROFILING)
  6.  
  7. +exec_program (Magick++-config ARGS --cxxflags OUTPUT_VARIABLE magick_config)
  8. +
  9. +string (REGEX MATCH "-DMAGICKCORE_HDRI_ENABLE=." magick_config_hdri ${magick_config})
  10. +string (REGEX MATCH "-DMAGICKCORE_QUANTUM_DEPTH=[0-9]+" magick_config_quantum ${magick_config})
  11. +
  12.  add_definitions( -DQT_NO_COMPAT )
  13.  add_definitions( -DKDE_NO_COMPAT )
  14.  add_definitions( -fexceptions )
  15. -add_definitions( -DMAGICKCORE_QUANTUM_DEPTH=16 )
  16. -add_definitions( -DMAGICKCORE_HDRI_ENABLE=0 )
  17. +add_definitions( ${magick_config_hdri} )
  18. +add_definitions( ${magick_config_quantum} )
  19.  
  20.  install (TARGETS kxstitch DESTINATION ${BIN_INSTALL_DIR})
  21.  install (FILES kxstitchui.rc DESTINATION ${DATA_INSTALL_DIR}/kxstitch)
clone this paste RAW Paste Data