2018-11-07 09:07:46 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-01-26 07:14:30 +08:00
|
|
|
REPO NTNU-IHB/FMI4cpp
|
2021-10-22 14:47:32 +08:00
|
|
|
REF 0.8.0
|
|
|
|
SHA512 547f61dfbd57593ff8839fbed3f8a5624551ee4be5e0dd7773384a869086af8a4483cfe17dc087e3f03c9ea2038b537c8c4998a405687c1a353d08e52dac411e
|
2018-11-07 09:07:46 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-22 14:47:32 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-01 06:02:18 +08:00
|
|
|
OPTIONS
|
2018-11-07 09:07:46 +08:00
|
|
|
-DFMI4CPP_BUILD_TESTS=OFF
|
|
|
|
-DFMI4CPP_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-22 14:47:32 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2018-11-07 09:07:46 +08:00
|
|
|
|
2021-10-22 14:47:32 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-11-07 09:07:46 +08:00
|
|
|
|
2019-01-26 07:14:30 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-09-06 01:43:09 +08:00
|
|
|
|
2021-10-22 14:47:32 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|