vcpkg/ports/restinio/portfile.cmake

29 lines
941 B
CMake
Raw Normal View History

2019-08-30 05:29:24 +08:00
vcpkg_from_github(
2018-07-12 17:33:58 +08:00
OUT_SOURCE_PATH SOURCE_PATH
2019-08-30 05:29:24 +08:00
REPO stiffstream/restinio
REF "v.${VERSION}"
SHA512 b5932a08687ef2d3ae02d0b0b1384b3462706ce207f16126efa8cd3dcea130d823863169dd5088b12b8c69761ccd044b447c2fe04f31ee10d26ff33d088606ee
)
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/dev"
OPTIONS
-DRESTINIO_INSTALL=ON
-DRESTINIO_TEST=OFF
-DRESTINIO_SAMPLE=OFF
-DRESTINIO_BENCHMARK=OFF
-DRESTINIO_WITH_SOBJECTIZER=OFF
-DRESTINIO_ASIO_SOURCE=standalone
-DRESTINIO_DEP_STANDALONE_ASIO=find
-DRESTINIO_DEP_LLHTTP=find
-DRESTINIO_DEP_FMT=find
-DRESTINIO_DEP_EXPECTED_LITE=find
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restinio)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")