CMakeLists.txt (857B)
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 Widgets) 7 if (NOT Qt6_FOUND) 8 message(WARNING "Qt6 was not found. The flicker test tool will not be built.") 9 return() 10 endif () 11 12 if (NOT TARGET icc_detect OR NOT TARGET image_loading) 13 message(WARNING "Comparison tool not built. The flicker test 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_executable(flicker_test WIN32 22 main.cc 23 parameters.cc 24 parameters.h 25 setup.cc 26 setup.h 27 setup.ui 28 split_view.cc 29 split_view.h 30 test_window.cc 31 test_window.h 32 test_window.ui) 33 34 target_link_libraries(flicker_test PUBLIC 35 Qt6::Widgets 36 image_loading 37 icc_detect 38 )