2018-01-18 14:08:48 +08:00
|
|
|
function(boost_modular_headers)
|
|
|
|
cmake_parse_arguments(_bm "" "SOURCE_PATH" "" ${ARGN})
|
|
|
|
|
|
|
|
if(NOT DEFINED _bm_SOURCE_PATH)
|
|
|
|
message(FATAL_ERROR "SOURCE_PATH is a required argument to boost_modular_headers.")
|
|
|
|
endif()
|
|
|
|
|
2022-01-13 03:39:19 +08:00
|
|
|
message(STATUS "Copying headers")
|
2018-01-18 14:08:48 +08:00
|
|
|
file(
|
2023-01-05 06:13:32 +08:00
|
|
|
COPY "${_bm_SOURCE_PATH}/include/boost"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
2018-01-18 14:08:48 +08:00
|
|
|
)
|
2022-01-13 03:39:19 +08:00
|
|
|
message(STATUS "Copying headers done")
|
2018-01-18 14:08:48 +08:00
|
|
|
|
2022-01-13 03:39:19 +08:00
|
|
|
file(INSTALL
|
2023-01-05 06:13:32 +08:00
|
|
|
"${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/usage"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
|
|
|
"${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost_LICENSE_1_0.txt"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
|
|
RENAME copyright
|
2018-01-18 14:08:48 +08:00
|
|
|
)
|
|
|
|
endfunction()
|