vcpkg/ports/fmi4cpp/portfile.cmake

25 lines
694 B
CMake
Raw Normal View History

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
REF 0.8.0
SHA512 547f61dfbd57593ff8839fbed3f8a5624551ee4be5e0dd7773384a869086af8a4483cfe17dc087e3f03c9ea2038b537c8c4998a405687c1a353d08e52dac411e
2018-11-07 09:07:46 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
2018-11-07 09:07:46 +08:00
-DFMI4CPP_BUILD_TESTS=OFF
-DFMI4CPP_BUILD_EXAMPLES=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
2018-11-07 09:07:46 +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()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)