mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 02:11:58 +08:00
[qscintilla] Add CMake export (#37787)
This commit is contained in:
parent
10bb9c21b7
commit
43d81795a5
@ -49,5 +49,7 @@ endif()
|
|||||||
|
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/unofficial-qscintilla-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}")
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||||
|
37
ports/qscintilla/unofficial-qscintilla-config.cmake
Normal file
37
ports/qscintilla/unofficial-qscintilla-config.cmake
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
if(NOT TARGET unofficial::qscintilla::qscintilla)
|
||||||
|
include(CMakeFindDependencyMacro)
|
||||||
|
find_dependency(Qt6Widgets CONFIG)
|
||||||
|
if(NOT IOS)
|
||||||
|
find_dependency(Qt6PrintSupport CONFIG)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_library(unofficial::qscintilla::qscintilla UNKNOWN IMPORTED)
|
||||||
|
get_filename_component(z_vcpkg_qscintilla_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||||
|
get_filename_component(z_vcpkg_qscintilla_root "${z_vcpkg_qscintilla_root}" PATH)
|
||||||
|
get_filename_component(z_vcpkg_qscintilla_root "${z_vcpkg_qscintilla_root}" PATH)
|
||||||
|
|
||||||
|
set_target_properties(unofficial::qscintilla::qscintilla PROPERTIES
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES "${z_vcpkg_qscintilla_root}/include"
|
||||||
|
INTERFACE_LINK_LIBRARIES Qt6::Widgets
|
||||||
|
)
|
||||||
|
|
||||||
|
if(NOT IOS)
|
||||||
|
set_property(TARGET unofficial::qscintilla::qscintilla APPEND PROPERTY INTERFACE_LINK_LIBRARIES Qt6::PrintSupport)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_library(Z_VCPKG_QSCINTILLA_LIBRARY_RELEASE NAMES libqscintilla2_qt6 qscintilla2_qt6 PATHS "${z_vcpkg_qscintilla_root}/lib" NO_DEFAULT_PATH)
|
||||||
|
if(EXISTS "${Z_VCPKG_QSCINTILLA_LIBRARY_RELEASE}")
|
||||||
|
set_property(TARGET unofficial::qscintilla::qscintilla APPEND PROPERTY IMPORTED_CONFIGURATIONS "Release")
|
||||||
|
set_target_properties(unofficial::qscintilla::qscintilla PROPERTIES
|
||||||
|
IMPORTED_LOCATION_RELEASE "${Z_VCPKG_QSCINTILLA_LIBRARY_RELEASE}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_library(Z_VCPKG_QSCINTILLA_LIBRARY_DEBUG NAMES libqscintilla2_qt6 qscintilla2_qt6d libqscintilla2_qt6_debug PATHS "${z_vcpkg_qscintilla_root}/debug/lib" NO_DEFAULT_PATH)
|
||||||
|
if(EXISTS "${Z_VCPKG_QSCINTILLA_LIBRARY_DEBUG}")
|
||||||
|
set_property(TARGET unofficial::qscintilla::qscintilla APPEND PROPERTY IMPORTED_CONFIGURATIONS "Debug")
|
||||||
|
set_target_properties(unofficial::qscintilla::qscintilla PROPERTIES
|
||||||
|
IMPORTED_LOCATION_DEBUG "${Z_VCPKG_QSCINTILLA_LIBRARY_DEBUG}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
unset(z_vcpkg_qscintilla_root)
|
||||||
|
endif()
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "qscintilla",
|
"name": "qscintilla",
|
||||||
"version": "2.14.1",
|
"version": "2.14.1",
|
||||||
|
"port-version": 1,
|
||||||
"description": "QScintilla is a port to Qt of the Scintilla editing component. Features syntax highlighting, code-completion and much more (Barebone build without python bindings (missing dependeny PyQt) and without QtDesigner plugin)",
|
"description": "QScintilla is a port to Qt of the Scintilla editing component. Features syntax highlighting, code-completion and much more (Barebone build without python bindings (missing dependeny PyQt) and without QtDesigner plugin)",
|
||||||
"homepage": "https://www.riverbankcomputing.com/software/qscintilla",
|
"homepage": "https://www.riverbankcomputing.com/software/qscintilla",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
|
@ -7086,7 +7086,7 @@
|
|||||||
},
|
},
|
||||||
"qscintilla": {
|
"qscintilla": {
|
||||||
"baseline": "2.14.1",
|
"baseline": "2.14.1",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"qt": {
|
"qt": {
|
||||||
"baseline": "6.6.1",
|
"baseline": "6.6.1",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "dc5fd8d8484f29c7fd10d360f74d6b1bff6bd884",
|
||||||
|
"version": "2.14.1",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "3280645a840ece797868b44065cbbe3b609b4099",
|
"git-tree": "3280645a840ece797868b44065cbbe3b609b4099",
|
||||||
"version": "2.14.1",
|
"version": "2.14.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user