1 # Finds the International Components for Unicode (ICU) Library
3 # ICU_FOUND - True if ICU found.
4 # ICU_I18N_FOUND - True if ICU's internationalization library found.
5 # ICU_INCLUDE_DIRS - Directory to include to get ICU headers
6 # Note: always include ICU headers as, e.g.,
8 # ICU_LIBRARIES - Libraries to link against for the common ICU
9 # ICU_I18N_LIBRARIES - Libraries to link against for ICU internationaliation
10 # (note: in addition to ICU_LIBRARIES)
12 # Look for the header file.
15 NAMES unicode/utypes.h
16 DOC "Include directory for the ICU library")
17 mark_as_advanced(ICU_INCLUDE_DIR)
19 # Look for the library.
22 NAMES icuuc cygicuuc cygicuuc32
23 DOC "Libraries to link against for the common parts of ICU")
24 mark_as_advanced(ICU_LIBRARY)
26 # Copy the results to the output variables.
27 if(ICU_INCLUDE_DIR AND ICU_LIBRARY)
29 set(ICU_LIBRARIES ${ICU_LIBRARY})
30 set(ICU_INCLUDE_DIRS ${ICU_INCLUDE_DIR})
32 # Look for the ICU internationalization libraries
35 NAMES icuin icui18n cygicuin cygicuin32
36 DOC "Libraries to link against for ICU internationalization")
37 mark_as_advanced(ICU_I18N_LIBRARY)
40 set(ICU_I18N_LIBRARIES ${ICU_I18N_LIBRARY})
41 else (ICU_I18N_LIBRARY)
43 set(ICU_I18N_LIBRARIES)
44 endif (ICU_I18N_LIBRARY)
45 else(ICU_INCLUDE_DIR AND ICU_LIBRARY)
49 set(ICU_I18N_LIBRARIES)
51 endif(ICU_INCLUDE_DIR AND ICU_LIBRARY)