diff options
Diffstat (limited to 'vcpkg/ports/gsl-lite')
| -rw-r--r-- | vcpkg/ports/gsl-lite/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/gsl-lite/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/gsl-lite/vcpkg.json | 18 |
3 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/gsl-lite/portfile.cmake b/vcpkg/ports/gsl-lite/portfile.cmake new file mode 100644 index 0000000..4dea339 --- /dev/null +++ b/vcpkg/ports/gsl-lite/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO gsl-lite/gsl-lite
+ REF "v${VERSION}"
+ SHA512 b872be42f8d17a55db61fd3862c4b4a9e095e77aeee8001e81b35c3597d3ed1e08edff6bb4e509b9b51fa7cdb09d313f4a7db538a2c3f19971fb4b6840efa42a
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ CONFIG_PATH "share/cmake/gsl-lite"
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/lib"
+ "${CURRENT_PACKAGES_DIR}/debug"
+)
+
+file(INSTALL
+ "${SOURCE_PATH}/LICENSE"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+ RENAME copyright
+)
+
+file(INSTALL
+ "${CMAKE_CURRENT_LIST_DIR}/usage"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+)
diff --git a/vcpkg/ports/gsl-lite/usage b/vcpkg/ports/gsl-lite/usage new file mode 100644 index 0000000..4d6ad74 --- /dev/null +++ b/vcpkg/ports/gsl-lite/usage @@ -0,0 +1,4 @@ +gsl-lite provides CMake targets:
+
+ find_package(gsl-lite CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE gsl-lite::gsl-lite)
diff --git a/vcpkg/ports/gsl-lite/vcpkg.json b/vcpkg/ports/gsl-lite/vcpkg.json new file mode 100644 index 0000000..43bd216 --- /dev/null +++ b/vcpkg/ports/gsl-lite/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "gsl-lite", + "version": "1.0.1", + "description": "ISO C++ Core Guidelines Library implementation for C++98, C++11 up", + "homepage": "https://github.com/gsl-lite/gsl-lite/", + "documentation": "https://gsl-lite.github.io/gsl-lite/", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |