mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00

We used to have SLINT_FEATURE_BACKEND_GL_ALL, but when we introduced the renderer and event loop distinction in the features, we removed the "all" suffix from the event loop that includes x11 and wayland support.
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
cmake_minimum_required(VERSION 3.19)
|
|
project(SlintExamples LANGUAGES CXX)
|
|
|
|
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
|
|
|
|
find_package(OpenGLES2 QUIET)
|
|
|
|
if (NOT TARGET Slint::Slint)
|
|
find_package(Slint REQUIRED)
|
|
include(FetchContent)
|
|
endif()
|
|
|
|
if (TARGET Slint::slint-compiler)
|
|
add_subdirectory(printerdemo/cpp/)
|
|
endif()
|
|
if (SLINT_FEATURE_INTERPRETER)
|
|
add_subdirectory(printerdemo/cpp_interpreted/)
|
|
endif()
|
|
if (TARGET Slint::slint-compiler)
|
|
add_subdirectory(printerdemo_old/cpp/)
|
|
add_subdirectory(todo/cpp/)
|
|
add_subdirectory(gallery/)
|
|
add_subdirectory(memory/)
|
|
endif()
|
|
if (SLINT_FEATURE_INTERPRETER AND SLINT_FEATURE_BACKEND_QT)
|
|
add_subdirectory(qt_viewer/)
|
|
endif()
|
|
if (SLINT_FEATURE_INTERPRETER)
|
|
add_subdirectory(iot-dashboard/)
|
|
endif()
|
|
if (TARGET Slint::slint-compiler AND OpenGLES2_FOUND AND(SLINT_FEATURE_EVENTLOOP_WINIT OR SLINT_FEATURE_EVENTLOOP_WINIT_WAYLAND OR SLINT_FEATURE_EVENTLOOP_WINIT_X11) AND SLINT_FEATURE_RENDERER_FEMTOVG)
|
|
add_subdirectory(opengl_underlay)
|
|
endif()
|