set(ICU_HEADERS
    ${PROJECT_SOURCE_DIR}/third_party/icu/ICUCompatible.h
)

set(ICU_SOURCES
    ${PROJECT_SOURCE_DIR}/third_party/icu/ICUCompatible.cpp
)
set_source_files_properties(${ICU_SOURCES} PROPERTIES COMPILE_FLAGS "-fno-lto -DU_DISABLE_RENAMING=1 -Wno-deprecated-declarations -DU_I18N_IMPLEMENTATION -DU_COMMON_IMPLEMENTATION -DU_ICUDATAENTRY_IN_COMMON  -DUCONFIG_ONLY_HTML_CONVERSION=1 -DHAVE_DLOPEN=0 -DU_CHARSET_IS_UTF8=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t  -fno-exceptions -DU_SHOW_CPLUSPLUS_API=0")
include_directories(${PROJECT_SOURCE_DIR}/third_party/icu/)
add_library(icu  STATIC ${ICU_HEADERS} ${ICU_SOURCES})
