1cmake_minimum_required(VERSION 3.16.5) 2 3set(CMAKE_CXX_STANDARD 11) 4 5project(icu) 6 7set(LibIcuSrc "${PROJECT_SOURCE_DIR}/icu4c/source/common") 8 9include_directories(${LibIcuSrc}) 10 11MESSAGE("ICU_INCLUDE_DIRS: " ${LibIcuSrc}) 12 13add_library(icu STATIC 14 ${LibIcuSrc}/cmemory.cpp 15 ${LibIcuSrc}/cstring.cpp 16 ${LibIcuSrc}/ubidi.cpp 17 ${LibIcuSrc}/ubidiln.cpp 18 ${LibIcuSrc}/ubidiwrt.cpp 19 ${LibIcuSrc}/ubidi_props.cpp 20 ${LibIcuSrc}/uchar.cpp 21 ${LibIcuSrc}/udataswp.cpp 22 ${LibIcuSrc}/uinvchar.cpp 23 ${LibIcuSrc}/ustring.cpp 24 ${LibIcuSrc}/utf_impl.cpp 25 ${LibIcuSrc}/utrie2.cpp 26 ) 27 28target_include_directories(icu PUBLIC ${LibIcuSrc}) 29