mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-07 02:50:34 +00:00
22 lines
648 B
CMake
22 lines
648 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.14)
|
|
project(slint_cpp_iot_dashboard LANGUAGES CXX)
|
|
|
|
if (NOT TARGET Slint::Slint)
|
|
find_package(Slint REQUIRED)
|
|
include(FetchContent)
|
|
endif()
|
|
|
|
FetchContent_Declare(fmt
|
|
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
|
|
GIT_TAG 7.1.3
|
|
)
|
|
FetchContent_MakeAvailable(fmt)
|
|
|
|
add_executable(iot_dashboard main.cpp dashboard.cpp)
|
|
target_compile_definitions(iot_dashboard PRIVATE
|
|
SOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"
|
|
)
|
|
target_link_libraries(iot_dashboard PRIVATE Slint::Slint fmt::fmt )
|