diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/color-console | |
Diffstat (limited to 'vcpkg/ports/color-console')
| -rw-r--r-- | vcpkg/ports/color-console/portfile.cmake | 16 | ||||
| -rw-r--r-- | vcpkg/ports/color-console/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/color-console/vcpkg.json | 7 |
3 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/color-console/portfile.cmake b/vcpkg/ports/color-console/portfile.cmake new file mode 100644 index 0000000..392a600 --- /dev/null +++ b/vcpkg/ports/color-console/portfile.cmake @@ -0,0 +1,16 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO imfl/color-console
+ REF 745f57141e6322e20cdda59a74ab1e00d107ade1
+ SHA512 d4d919eb211f2981daf6b9af93262fc8ac89bac0db755ba30b31d6aa1b981e5383fb23ef95d1ff004606d138fee630fd790c72e92440b684306c6780750bd9fd
+ HEAD_REF master
+)
+
+# Install source file
+file(INSTALL ${SOURCE_PATH}/include/color.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME colorconsole.hpp)
+
+# Install license
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+
+# Install usage
+file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
\ No newline at end of file diff --git a/vcpkg/ports/color-console/usage b/vcpkg/ports/color-console/usage new file mode 100644 index 0000000..ec73468 --- /dev/null +++ b/vcpkg/ports/color-console/usage @@ -0,0 +1,4 @@ +The package zstr is header only and can be used from CMake via:
+
+ find_path(COLORCONSOLE_INCLUDE_DIRS "colorconsole.hpp")
+ target_include_directories(main PRIVATE ${COLORCONSOLE_INCLUDE_DIRS})
\ No newline at end of file diff --git a/vcpkg/ports/color-console/vcpkg.json b/vcpkg/ports/color-console/vcpkg.json new file mode 100644 index 0000000..2475ce2 --- /dev/null +++ b/vcpkg/ports/color-console/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "color-console", + "version-date": "2022-03-20", + "description": "A lightweight header-only C++ library to bring colors to your Windows console with a very-easy-to-use API.", + "homepage": "https://github.com/imfl/color-console", + "license": "MIT" +} |