2018-08-22 07:43:23 +08:00
|
|
|
# header-only library
|
2023-06-27 13:11:23 +08:00
|
|
|
|
2018-08-22 07:43:23 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cameron314/concurrentqueue
|
2023-06-27 13:11:23 +08:00
|
|
|
REF v${VERSION}
|
|
|
|
SHA512 a27306d1a7ad725daf5155a8e33a93efd29839708b2147ba703d036c4a92e04cbd8a505d804d2596ccb4dd797e88aca030b1cb34a4eaf09c45abb0ab55e604ea
|
2018-08-22 07:43:23 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-05-24 11:40:06 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-24 11:40:06 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-concurrentqueue)
|
2019-05-24 11:40:06 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2019-05-24 11:40:06 +08:00
|
|
|
|
|
|
|
configure_file(
|
2023-03-07 07:44:04 +08:00
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-config.in.cmake"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/unofficial-concurrentqueue/unofficial-concurrentqueue-config.cmake"
|
2019-05-24 11:40:06 +08:00
|
|
|
@ONLY
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(GLOB HEADER_FILES "${SOURCE_PATH}/*.h")
|
|
|
|
file(INSTALL ${HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
2023-06-27 13:11:23 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|