2017-01-20 19:57:30 +00:00
|
|
|
set (ICU_PATHS "/usr/local/opt/icu4c/lib")
|
|
|
|
set (ICU_INCLUDE_PATHS "/usr/local/opt/icu4c/include")
|
2016-12-06 13:42:53 +00:00
|
|
|
if (USE_STATIC_LIBRARIES)
|
2017-01-20 19:57:30 +00:00
|
|
|
find_library (ICUI18N libicui18n.a PATHS ${ICU_PATHS})
|
|
|
|
find_library (ICUUC libicuuc.a PATHS ${ICU_PATHS})
|
|
|
|
find_library (ICUDATA libicudata.a PATHS ${ICU_PATHS})
|
2016-12-06 13:42:53 +00:00
|
|
|
else ()
|
2017-01-20 19:57:30 +00:00
|
|
|
find_library (ICUI18N icui18n PATHS ${ICU_PATHS})
|
|
|
|
find_library (ICUUC icuuc PATHS ${ICU_PATHS})
|
|
|
|
find_library (ICUDATA icudata PATHS ${ICU_PATHS})
|
2016-12-06 13:42:53 +00:00
|
|
|
endif ()
|
|
|
|
set (ICU_LIBS ${ICUI18N} ${ICUUC} ${ICUDATA})
|
2017-01-20 19:57:30 +00:00
|
|
|
|
2017-01-24 21:07:08 +00:00
|
|
|
find_path (ICU_INCLUDE_DIR NAMES unicode/unistr.h PATHS ${ICU_INCLUDE_PATHS})
|
2017-01-20 19:57:30 +00:00
|
|
|
message(STATUS "Using icu: ${ICU_INCLUDE_DIR} : ${ICU_LIBS}")
|
|
|
|
include_directories (${ICU_INCLUDE_DIR})
|