2019-11-22 08:58:35 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO embotech/ecos
|
2021-04-24 01:18:22 +08:00
|
|
|
REF v2.0.8
|
|
|
|
SHA512 c1adb188d6b2c400f817de15272472adfd013e2a174f49ec0bb2f7f889f26ba2b7ea165d9bedac3031bd2da7a770f2a285ad825d5b22ccc6cf43c756a20f844f
|
2019-11-22 08:58:35 +08:00
|
|
|
HEAD_REF develop
|
|
|
|
)
|
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-11-22 08:58:35 +08:00
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-04-22 05:48:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-11-22 08:58:35 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-11-22 08:58:35 +08:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2019-11-22 08:58:35 +08:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "share/ecos")
|