slint/examples/carousel/cpp/CMakeLists.txt
Tobias Hunger 6934b7b779 cmake: Fix SLINT_EMBED_RESOURCES
* Do not use the initialize_from feature introduced in cmake 3.23
2023-03-27 16:18:05 +02:00

13 lines
416 B
CMake

# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
cmake_minimum_required(VERSION 3.21)
project(slint_cpp_carousel LANGUAGES CXX)
if (NOT TARGET Slint::Slint)
find_package(Slint REQUIRED)
endif()
add_executable(carousel main.cpp)
target_link_libraries(carousel PRIVATE Slint::Slint)
slint_target_sources(carousel ../ui/carousel_demo.slint)