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/cpp-pinyin/usage | |
Diffstat (limited to 'vcpkg/ports/cpp-pinyin/usage')
| -rw-r--r-- | vcpkg/ports/cpp-pinyin/usage | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-pinyin/usage b/vcpkg/ports/cpp-pinyin/usage new file mode 100644 index 0000000..23b6a78 --- /dev/null +++ b/vcpkg/ports/cpp-pinyin/usage @@ -0,0 +1,12 @@ +cpp-pinyin provides CMake targets:
+
+ find_package(cpp-pinyin CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE cpp-pinyin::cpp-pinyin)
+
+To use the library, you need to copy the dictionary files to the binary directory.
+
+ add_custom_command(TARGET main POST_BUILD
+ COMMAND "${CMAKE_COMMAND}" -E copy_directory
+ "${cpp-pinyin_DIR}/dict"
+ "$<TARGET_FILE_DIR:main>/dict"
+ )
|