mirror of https://github.com/microsoft/vcpkg.git
27 lines
1.0 KiB
CMake
27 lines
1.0 KiB
CMake
string(REGEX MATCH "^[0-9]+" VERSION_MAJOR "${VERSION}")
|
|
string(REGEX MATCH "^gz-([a-z-]+)" MATCHED_VALUE "${PORT}")
|
|
set(PACKAGE_NAME "${CMAKE_MATCH_1}")
|
|
|
|
ignition_modular_library(
|
|
NAME "${PACKAGE_NAME}"
|
|
REF "${PORT}${VERSION_MAJOR}_${VERSION}"
|
|
VERSION "${VERSION}"
|
|
SHA512 41192ce9dc3fef34ea94e4b969f662960e2b381f95e2b102efbbb368d6a49bf4f901a9cff6e5dcdfe54e109f9aae4917e69126463b5b14260a260811dc113a36
|
|
PATCHES
|
|
dependencies.patch
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/${PORT}-${VERSION_MAJOR}/engine-plugins/*.dll")
|
|
if (NOT plugins STREQUAL "")
|
|
file(COPY ${plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/engine-plugins/")
|
|
file(REMOVE ${plugins})
|
|
endif()
|
|
|
|
file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}-${VERSION_MAJOR}/engine-plugins/*.dll")
|
|
if (NOT plugins_debug STREQUAL "")
|
|
file(COPY ${plugins_debug} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/engine-plugins/")
|
|
file(REMOVE ${plugins_debug})
|
|
endif()
|
|
endif()
|