2022-02-04 10:17:03 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO asmaloney/libE57Format
|
2023-02-27 20:50:12 +01:00
|
|
|
REF "v${VERSION}"
|
2024-01-31 23:05:41 +01:00
|
|
|
SHA512 9be79a969b74008801e20531530cdf3dc1f0041d6fbd2be1aaa8d58b35b06309b1f324309ad1d989a345389ed168c96c325ebe65844efec9bbffd183bf2e4766
|
2022-02-04 10:17:03 +01:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2024-01-23 20:49:11 +01:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" E57_BUILD_SHARED)
|
|
|
|
string(COMPARE NOTEQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" E57_USING_STATIC_XERCES)
|
|
|
|
|
2022-02-04 10:17:03 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-02-27 20:50:12 +01:00
|
|
|
OPTIONS
|
|
|
|
-DE57_BUILD_TEST=OFF
|
2024-01-23 20:49:11 +01:00
|
|
|
-DE57_BUILD_SHARED=${E57_BUILD_SHARED}
|
|
|
|
-DUSING_STATIC_XERCES=${E57_USING_STATIC_XERCES}
|
2022-02-04 10:17:03 +01:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
2023-01-31 22:12:25 -05:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME E57Format CONFIG_PATH "lib/cmake/E57Format")
|
2022-02-04 10:17:03 +01:00
|
|
|
|
2024-01-23 20:49:11 +01:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2022-02-04 10:17:03 +01:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/libe57format RENAME copyright)
|