libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

CMakeLists.txt (1592B)


      1 # Copyright (c) the JPEG XL Project Authors. All rights reserved.
      2 #
      3 # Use of this source code is governed by a BSD-style
      4 # license that can be found in the LICENSE file.
      5 
      6 find_package(Qt6 QUIET COMPONENTS Concurrent Widgets)
      7 if (NOT Qt6_FOUND)
      8   message(WARNING "Qt6 was not found. The comparison tool will not be built.")
      9   return()
     10 endif ()
     11 
     12 if (NOT TARGET icc_detect)
     13   message(WARNING "icc_detect not built. The comparison tool will not be built.")
     14   return ()
     15 endif ()
     16 
     17 set(CMAKE_INCLUDE_CURRENT_DIR ON)
     18 set(CMAKE_AUTOMOC ON)
     19 set(CMAKE_AUTOUIC ON)
     20 
     21 add_library(image_loading STATIC
     22   ../viewer/load_jxl.cc
     23   ../viewer/load_jxl.h
     24   image_loading.cc
     25   image_loading.h
     26 )
     27 target_include_directories(image_loading PRIVATE
     28   $<TARGET_PROPERTY:lcms2,INCLUDE_DIRECTORIES>
     29 )
     30 target_link_libraries(image_loading PUBLIC
     31   Qt6::Widgets
     32   jxl-internal
     33   jxl_threads
     34   jxl_extras-internal
     35   lcms2
     36 )
     37 
     38 add_executable(compare_codecs WIN32
     39   codec_comparison_window.cc
     40   codec_comparison_window.h
     41   codec_comparison_window.ui
     42   compare_codecs.cc
     43   settings.cc
     44   settings.h
     45   settings.ui
     46   split_image_renderer.cc
     47   split_image_renderer.h
     48   split_image_view.cc
     49   split_image_view.h
     50   split_image_view.ui
     51 )
     52 target_link_libraries(compare_codecs
     53   image_loading
     54   Qt6::Concurrent
     55   Qt6::Widgets
     56   icc_detect
     57 )
     58 
     59 add_executable(compare_images WIN32
     60   compare_images.cc
     61   settings.cc
     62   settings.h
     63   settings.ui
     64   split_image_renderer.cc
     65   split_image_renderer.h
     66   split_image_view.cc
     67   split_image_view.h
     68   split_image_view.ui
     69 )
     70 target_link_libraries(compare_images
     71   image_loading
     72   Qt6::Widgets
     73   icc_detect
     74 )