mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 20:42:25 +00:00
35 lines
1.3 KiB
CMake
35 lines
1.3 KiB
CMake
# LICENSE BEGIN
|
|
# This file is part of the SixtyFPS Project -- https://sixtyfps.io
|
|
# Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
|
|
# Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
# This file is also available under commercial licensing terms.
|
|
# Please contact info@sixtyfps.io for more information.
|
|
# LICENSE END
|
|
@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()
|
|
|
|
foreach(internal_lib IN ITEMS @internal_libs@)
|
|
add_library(${internal_lib} SHARED IMPORTED)
|
|
set(fn "${internal_lib}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
|
# Don't look in lib when we're inside a cargo tree, as cargo doesn't use a lib/ sub-dir.
|
|
if(EXISTS "${_IMPORT_PREFIX}/${fn}")
|
|
else()
|
|
set(fn "lib/${fn}")
|
|
endif()
|
|
set_property(TARGET ${internal_lib} PROPERTY IMPORTED_LOCATION "${_IMPORT_PREFIX}/${fn}")
|
|
|
|
set(fn)
|
|
endforeach()
|
|
|
|
set(_IMPORT_PREFIX)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/SixtyFPSTargets.cmake")
|