mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:59:06 +08:00
5d49baff5d
Co-authored-by: Nick D'Ademo <dademo.n@duerr-ndt.com>
38 lines
1.5 KiB
CMake
38 lines
1.5 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO githubuser0xFFFF/Qt-Advanced-Docking-System
|
|
REF "${VERSION}"
|
|
SHA512 ee78b1c7f6164b06ce9c193aa5dfa19281a1c894cd8a8cbcae6d137abc13417f32e0f2a05f9d91557e14ced91b3b541991065d0ee190ea5ad2623c3848674eaf
|
|
HEAD_REF master
|
|
)
|
|
|
|
if(VCPKG_CROSSCOMPILING)
|
|
list(APPEND _qarg_OPTIONS "-DQT_HOST_PATH=${CURRENT_HOST_INSTALLED_DIR}")
|
|
list(APPEND _qarg_OPTIONS "-DQT_HOST_PATH_CMAKE_DIR:PATH=${CURRENT_HOST_INSTALLED_DIR}/share")
|
|
endif()
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${_qarg_OPTIONS}
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DADS_VERSION=${VERSION}
|
|
-DQT_VERSION_MAJOR=6
|
|
-DBUILD_STATIC=${BUILD_STATIC}
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "qt6advanceddocking" CONFIG_PATH "lib/cmake/qt6advanceddocking")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/qt6advanceddocking/qt6advanceddockingConfig.cmake"
|
|
"include(CMakeFindDependencyMacro)"
|
|
[[include(CMakeFindDependencyMacro)
|
|
find_dependency(Qt6 COMPONENTS Core Gui Widgets)]])
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/license")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/license")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/gnu-lgpl-v2.1.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|