2016-10-27 03:15:42 +08:00
|
|
|
#header-only library
|
2016-09-26 15:43:44 +08:00
|
|
|
include(vcpkg_common_functions)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO elbeno/constexpr
|
|
|
|
REF a98b1db39c909e0130d21d3910d4faf97035a625
|
|
|
|
SHA512 8802ee43b510ea1f0c00949eecd84eb2bf3ac721802e6bc6755db9e6e2742d8b97fef427eca7d4d9a282c60a18ca10401386022eac995bd22624f45e3fc2c370
|
|
|
|
HEAD_REF master
|
2016-09-26 15:43:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
2016-09-29 08:05:56 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE)
|
2016-09-26 16:55:18 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright)
|
2016-09-26 15:43:44 +08:00
|
|
|
|
|
|
|
# Copy the constexpr header files
|
2016-09-29 08:05:56 +08:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/src/include/*.h)
|
2016-09-26 15:43:44 +08:00
|
|
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|