vcpkg/ports/dx/portfile.cmake

20 lines
672 B
CMake
Raw Normal View History

2017-01-05 15:09:40 +08:00
#header-only library
include(vcpkg_common_functions)
2017-01-18 22:20:32 +08:00
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/dx-1.0.1)
2017-01-05 15:09:40 +08:00
vcpkg_download_distfile(ARCHIVE
2017-01-18 22:20:32 +08:00
URLS "https://github.com/sdcb/dx/archive/v1.0.1.tar.gz"
FILENAME "dx-1.0.1.tar.gz"
SHA512 b40eb4daf774bfdb394b207bb29652fbf44361f5d8f9b60509c7a3215cd403dbf0c10454979c0c2e97d839496ef20940070a42837375993cd67d58afacc990e0
2017-01-05 15:09:40 +08:00
)
vcpkg_extract_source_archive(${ARCHIVE})
file(INSTALL
${SOURCE_PATH}/dx.h
${SOURCE_PATH}/debug.h
${SOURCE_PATH}/handle.h
DESTINATION ${CURRENT_PACKAGES_DIR}/include/dx
)
file(INSTALL
${SOURCE_PATH}/LICENSE
DESTINATION ${CURRENT_PACKAGES_DIR}/share/dx RENAME copyright)