diff options
Diffstat (limited to 'vcpkg/ports/plog')
| -rw-r--r-- | vcpkg/ports/plog/portfile.cmake | 20 | ||||
| -rw-r--r-- | vcpkg/ports/plog/usage | 6 | ||||
| -rw-r--r-- | vcpkg/ports/plog/vcpkg.json | 17 |
3 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/plog/portfile.cmake b/vcpkg/ports/plog/portfile.cmake new file mode 100644 index 0000000..ed5a8aa --- /dev/null +++ b/vcpkg/ports/plog/portfile.cmake @@ -0,0 +1,20 @@ +# Header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO SergiusTheBest/plog + REF ${VERSION} + SHA512 b51b83a2b478a54d83333590a4f157e3fdeea08903486249d537811afef370ce9968197efb534f2b4084a5a7a7253e5e2d7e191d602451ea625d645a39f195dc + HEAD_REF master +) + +vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH} OPTIONS -DPLOG_BUILD_SAMPLES=OFF) +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) + +# Copy usage file +file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +# Put the licence file where vcpkg expects it +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/plog/usage b/vcpkg/ports/plog/usage new file mode 100644 index 0000000..bfba94d --- /dev/null +++ b/vcpkg/ports/plog/usage @@ -0,0 +1,6 @@ +The package plog is header only and can be used from CMake via:
+
+Modern CMake:
+ find_package(plog CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE plog::plog)
+
diff --git a/vcpkg/ports/plog/vcpkg.json b/vcpkg/ports/plog/vcpkg.json new file mode 100644 index 0000000..8d358df --- /dev/null +++ b/vcpkg/ports/plog/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "plog", + "version": "1.1.11", + "description": "Portable, simple and extensible C++ logging library.", + "homepage": "https://github.com/SergiusTheBest/plog", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |