mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
15 lines
570 B
CMake
15 lines
570 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.19)
|
|
project(memory LANGUAGES CXX)
|
|
|
|
if (NOT TARGET Slint::Slint)
|
|
find_package(Slint REQUIRED)
|
|
endif()
|
|
|
|
# Note, we can't name it simply "memory" because there is a C++ standard header with the same name
|
|
# so `#include<memory>` includes the generated binary when it exists
|
|
add_executable(memory_game memory.cpp)
|
|
target_link_libraries(memory_game PRIVATE Slint::Slint)
|
|
slint_target_sources(memory_game memory.slint)
|