2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2017-08-27 09:18:26 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2017-08-27 09:18:26 +08:00
|
|
|
REPO flexible-collision-library/fcl
|
2021-10-27 14:39:12 +08:00
|
|
|
REF 0.7.0
|
|
|
|
SHA512 95612476f4706fcd60812204ec7495a956c4e318cc6ace9526ac93dc765605ddf73b2d0d9ff9f4c9c739e43c5f8e24670113c86e02868a2949ab234c3bf82374
|
2020-03-11 07:52:55 +08:00
|
|
|
HEAD_REF master
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-08-27 09:18:26 +08:00
|
|
|
|
2021-10-27 14:39:12 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" FCL_STATIC_LIBRARY)
|
2017-08-27 09:18:26 +08:00
|
|
|
|
2020-05-21 05:24:22 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
|
|
set(FCL_USE_X64_SSE ON)
|
|
|
|
else()
|
|
|
|
set(FCL_USE_X64_SSE OFF)
|
|
|
|
endif()
|
|
|
|
|
2021-10-27 14:39:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-08-27 09:18:26 +08:00
|
|
|
OPTIONS
|
2021-11-05 01:46:05 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=1
|
2017-08-27 09:18:26 +08:00
|
|
|
-DFCL_STATIC_LIBRARY=${FCL_STATIC_LIBRARY}
|
|
|
|
-DFCL_BUILD_TESTS=OFF
|
2020-05-21 05:24:22 +08:00
|
|
|
-DFCL_USE_X64_SSE=${FCL_USE_X64_SSE}
|
2017-08-27 09:18:26 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 14:39:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-08-27 09:18:26 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-27 14:39:12 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/CMake")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
2019-04-02 04:35:22 +08:00
|
|
|
else()
|
2021-10-27 14:39:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fcl)
|
2019-04-02 04:35:22 +08:00
|
|
|
endif()
|
|
|
|
|
2021-10-27 14:39:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-08-27 09:18:26 +08:00
|
|
|
|
2021-10-27 14:39:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|