icu-portable is a CMake wrapper for icu4c.
- CMake-based. Integrates seamlessly with your CMake projects.
- No host build required. Downloads prebuilt ICU data for the target platform, from the official ICU releases.
To use icu-portable in your CMake project, follow these steps:
- Add the following to your
CMakeLists.txt:
include(FetchContent)
FetchContent_Declare(
icu_portable
GIT_REPOSITORY "https://github.com/k0michi/icu-portable.git"
GIT_TAG "main"
)
FetchContent_MakeAvailable(icu_portable)- Link against the ICU libraries in your target:
target_link_libraries(your_target PRIVATE icuuc icui18n icuio)- CMake 3.20 or higher
- C++17 compatible compiler
- Python 3.x (for converting ICU data)
Unlicense (public domain). Note that icu4c is licensed under the ICU License.