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
|
2019-05-01 06:02:18 +08:00
|
|
|
REF v0.7.0
|
|
|
|
SHA512 5846f5b28badb5b4836ffd9d284f602dd243df20d3c82cab5e2b62b8be37e0ab05b7422bca066f37ca67ee0d5b35abd2febe87f623fc3b9854d245e86e1e21fe
|
2018-11-07 09:07:46 +08:00
|
|
|
HEAD_REF master
|
2019-06-26 02:00:48 +08:00
|
|
|
PATCHES
|
|
|
|
fix-build_error.patch
|
2018-11-07 09:07:46 +08:00
|
|
|
)
|
|
|
|
|
2019-05-01 06:02:18 +08:00
|
|
|
set(WITH_CURL OFF)
|
|
|
|
if("curl" IN_LIST FEATURES)
|
|
|
|
set(WITH_CURL ON)
|
|
|
|
endif()
|
|
|
|
|
2019-01-26 07:14:30 +08:00
|
|
|
set(WITH_ODEINT OFF)
|
|
|
|
if("odeint" IN_LIST FEATURES)
|
|
|
|
set(WITH_ODEINT ON)
|
|
|
|
endif()
|
|
|
|
|
2018-11-07 09:07:46 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-01-26 07:14:30 +08:00
|
|
|
PREFER_NINJA
|
2019-05-01 06:02:18 +08:00
|
|
|
OPTIONS
|
2019-01-26 07:14:30 +08:00
|
|
|
-DFMI4CPP_BUILD_TOOL=OFF
|
2018-11-07 09:07:46 +08:00
|
|
|
-DFMI4CPP_BUILD_TESTS=OFF
|
|
|
|
-DFMI4CPP_BUILD_EXAMPLES=OFF
|
2019-05-01 06:02:18 +08:00
|
|
|
-DFMI4CPP_WITH_CURL=${WITH_CURL}
|
2019-09-06 01:43:09 +08:00
|
|
|
-DFMI4CPP_WITH_ODEINT=${WITH_ODEINT}
|
2018-11-07 09:07:46 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-05-01 06:02:18 +08:00
|
|
|
vcpkg_fixup_cmake_targets()
|
2018-11-07 09:07:46 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
2019-01-26 07:14:30 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-09-06 01:43:09 +08:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
|
|
|
|
|