mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 16:09:01 +08:00
acdbbbaab9
Co-authored-by: Kai Pastor <dg0yt@darc.de>
13 lines
408 B
Plaintext
13 lines
408 B
Plaintext
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"
|
|
)
|