[pcg] add pcg implementation (#3966)

This commit is contained in:
kiwixz 2018-08-01 02:34:53 +02:00 committed by Robert Schumacher
parent 81d3b2cc6a
commit 321bbf1d99
2 changed files with 17 additions and 0 deletions

3
ports/pcg/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: pcg
Version: 0.98.1
Description: Permuted Congruential Generator

14
ports/pcg/portfile.cmake Normal file
View File

@ -0,0 +1,14 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO imneme/pcg-cpp
REF v0.98.1
SHA512 3625913eba3b5d3ff0763a00728535cd5273a335f0ce0a9ab8e0cd8183a52309cbf72ae50d089cfea89445201993466a5533469db1cb6e82b14c62564731fe70
HEAD_REF master
)
file(INSTALL ${SOURCE_PATH}/include/pcg_extras.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/include/pcg_random.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/include/pcg_uint128.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/pcg RENAME copyright)