vcpkg/ports/gz-physics6/portfile.cmake

26 lines
898 B
CMake
Raw Normal View History

2023-10-31 21:54:17 +02:00
set(PACKAGE_NAME physics)
ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}_${VERSION}
VERSION ${VERSION}
SHA512 c29594663509234e25c7d0a33848c0fe222c2b9471513978c18ea6873a17c66c43b4037c74e8849995fa6449c2dddc0f2ee669605893daf65119c277a17f39e1
OPTIONS
PATCHES
dependencies.patch
)
if(VCPKG_TARGET_IS_WINDOWS)
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/gz-physics-6/engine-plugins/*.dll")
if (NOT plugins STREQUAL "")
2023-11-09 21:28:51 +02:00
file(COPY ${plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/engine-plugins/")
2023-10-31 21:54:17 +02:00
file(REMOVE ${plugins})
endif()
file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/gz-physics-6/engine-plugins/*.dll")
if (NOT plugins_debug STREQUAL "")
2023-11-09 21:28:51 +02:00
file(COPY ${plugins_debug} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/engine-plugins/")
2023-10-31 21:54:17 +02:00
file(REMOVE ${plugins_debug})
endif()
endif()