mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Rename the SixtyFPS CMake interface
This commit is contained in:
parent
c333b4de2b
commit
b1a70f9e58
31 changed files with 161 additions and 152 deletions
25
api/cpp/cmake/SlintConfig.cmake.in
Normal file
25
api/cpp/cmake/SlintConfig.cmake.in
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Copyright © SixtyFPS GmbH <info@sixtyfps.io>
|
||||
# SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-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-shared SHARED IMPORTED)
|
||||
set_target_properties(slint-cpp-shared PROPERTIES @SLINT_LIB_PROPERTIES@)
|
||||
|
||||
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}")
|
||||
|
||||
set(_IMPORT_PREFIX)
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/SlintTargets.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/SlintMacro.cmake")
|
||||
|
||||
set(SLINT_STYLE @SLINT_STYLE_DEFAULT@ CACHE STRING "The Slint widget style")
|
Loading…
Add table
Add a link
Reference in a new issue