2017-10-07 01:53:48 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2017-10-13 01:18:29 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
message(STATUS "Celero currently can only be built statically")
|
|
|
|
set(VCPKG_LIBRARY_LINKAGE static)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO DigitalInBlue/Celero
|
|
|
|
REF v2.1.0
|
|
|
|
SHA512 30563567255b09a2c810d97896839589ed99d45b6c8d075fd16d1a0068457d70195a199f5c982c84784c2e03284c1eaac565253fa72b81d9e2d4102721b80221
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
2017-10-07 01:53:48 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-10-13 01:18:29 +08:00
|
|
|
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
|
|
|
OPTIONS
|
|
|
|
-DCELERO_ENABLE_EXPERIMENTS=OFF
|
|
|
|
-DCELERO_ENABLE_TESTS=OFF
|
|
|
|
-DCELERO_RUN_EXAMPLE_ON_BUILD=OFF
|
2017-10-07 01:53:48 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/celero RENAME copyright)
|