Warning, /graphics/glaxnimate/external/Qt-Color-Widgets/gallery/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2013-2023 Mattia Basaglia <dev@dragon.best>
0002 # SPDX-License-Identifier: BSD-2-Clause
0003 
0004 set (QT_SUPPORTED_VERSIONS 5)
0005 
0006 
0007 set(SCREENSHOT_SOURCES screenshot.cpp)
0008 set(SCREENSHOT_BINARY screenshot_bin)
0009 
0010 add_executable(${SCREENSHOT_BINARY} EXCLUDE_FROM_ALL ${SCREENSHOT_SOURCES})
0011 
0012 target_link_libraries(
0013     ${SCREENSHOT_BINARY}
0014     PRIVATE
0015     ${COLOR_WIDGETS_LIBRARY}
0016     Qt${QT_VERSION_MAJOR}::Widgets
0017 )
0018 
0019 add_custom_target(gallery
0020     COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${SCREENSHOT_BINARY}
0021     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
0022     DEPENDS ${SCREENSHOT_BINARY}
0023 )