set(icuLibs data i18n uc) find_package(ICU 54.1 COMPONENTS ${icuLibs}) if(ICU_FOUND) include_directories(SYSTEM ${ICU_INCLUDE_DIRS}) link_directories(${ICU_LIBRARY_DIRS}) add_definitions(-DHAVE_ICU=1) endif(ICU_FOUND)