diff options
Diffstat (limited to 'vcpkg/ports/michaelmiller-sec21')
| -rw-r--r-- | vcpkg/ports/michaelmiller-sec21/portfile.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/michaelmiller-sec21/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/michaelmiller-sec21/vcpkg.json | 17 |
3 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/michaelmiller-sec21/portfile.cmake b/vcpkg/ports/michaelmiller-sec21/portfile.cmake new file mode 100644 index 0000000..ce86cb4 --- /dev/null +++ b/vcpkg/ports/michaelmiller-sec21/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO MichaelMiller-/sec21 + REF "v${VERSION}" + SHA512 b9aab9d305e435db066f413a8e49d5622e83dc02d8e0ff0150a0edabf1b1dfd286f7aa5a3593b34c6f616fdd79caa3edbfeb09ff3b66aab80c0138aa2ca5950c + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME "sec21" CONFIG_PATH lib/cmake/sec21) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY) diff --git a/vcpkg/ports/michaelmiller-sec21/usage b/vcpkg/ports/michaelmiller-sec21/usage new file mode 100644 index 0000000..fedcc9b --- /dev/null +++ b/vcpkg/ports/michaelmiller-sec21/usage @@ -0,0 +1,4 @@ +michaelmiller-sec21 provides CMake targets: + +find_package(sec21 CONFIG REQUIRED) +target_link_libraries(main PRIVATE sec21::sec21) diff --git a/vcpkg/ports/michaelmiller-sec21/vcpkg.json b/vcpkg/ports/michaelmiller-sec21/vcpkg.json new file mode 100644 index 0000000..82e96b0 --- /dev/null +++ b/vcpkg/ports/michaelmiller-sec21/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "michaelmiller-sec21", + "version": "1.0.1", + "description": "sec21 is a collection of useful functions and classes.", + "homepage": "https://github.com/MichaelMiller-/sec21", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |