mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-09 20:06:18 +00:00

Updated the version from 1.1 to 1.2 Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License" Added definition of "Mobile Application" and grant of right Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage Moved the para on copyright notices to section under "Limitations"
34 lines
1.5 KiB
CMake
34 lines
1.5 KiB
CMake
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
if(_IMPORT_PREFIX STREQUAL "/")
|
|
set(_IMPORT_PREFIX "")
|
|
endif()
|
|
|
|
add_library(@slint_cpp_impl@ @cmake_lib_type@ IMPORTED)
|
|
set_target_properties(@slint_cpp_impl@ PROPERTIES @SLINT_LIB_PROPERTIES@)
|
|
|
|
set(SLINT_COMPILER @SLINT_COMPILER@ CACHE FILEPATH "Path to the slint-compiler executable")
|
|
if (SLINT_COMPILER)
|
|
set(SLINT_STYLE @_SLINT_STYLE@ CACHE STRING "The Slint widget style")
|
|
add_executable(Slint::slint-compiler IMPORTED GLOBAL)
|
|
set_target_properties(Slint::slint-compiler PROPERTIES IMPORTED_LOCATION ${SLINT_COMPILER})
|
|
include("${CMAKE_CURRENT_LIST_DIR}/SlintMacro.cmake")
|
|
elseif (@SLINT_FEATURE_COMPILER@)
|
|
add_executable(Slint::slint-compiler IMPORTED GLOBAL)
|
|
set_target_properties(Slint::slint-compiler PROPERTIES IMPORTED_LOCATION "${_IMPORT_PREFIX}/@CMAKE_INSTALL_BINDIR@/slint-compiler${CMAKE_EXECUTABLE_SUFFIX}")
|
|
include("${CMAKE_CURRENT_LIST_DIR}/SlintMacro.cmake")
|
|
endif()
|
|
|
|
set(_IMPORT_PREFIX)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/SlintTargets.cmake")
|
|
|
|
set(SLINT_STYLE @_SLINT_STYLE@ CACHE STRING "The Slint widget style")
|
|
set_property(GLOBAL PROPERTY SLINT_STYLE ${SLINT_STYLE})
|