vcpkg/ports/ode/portfile.cmake

26 lines
933 B
CMake
Raw Normal View History

2019-10-01 02:22:01 +08:00
vcpkg_from_bitbucket(
OUT_SOURCE_PATH SOURCE_PATH
2019-10-01 02:22:01 +08:00
REPO odedevs/ode
2020-04-27 22:01:00 +08:00
REF 0.16.1
SHA512 04429cae1b8fc703e53880c5de78293cee46fe4855c96ca7006bd5848255a0df004b75716a6b30ff5176df004e2bec29b2a31d4af8e7ac59da18f0af2eed8396
2019-10-01 02:22:01 +08:00
HEAD_REF master
2017-05-08 05:24:02 +08:00
)
2019-10-01 02:22:01 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DODE_WITH_DEMOS=0 -DODE_WITH_TESTS=0
2017-05-08 05:24:02 +08:00
)
2019-10-01 02:22:01 +08:00
vcpkg_install_cmake()
2020-04-27 22:01:00 +08:00
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ode-0.16.1)
2019-10-01 02:22:01 +08:00
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)