Update list of wide characters
[centerim5.git] / cmake / FindIconv.cmake
blob01a1e89a527ac8836008361ec6b98242a7a686b5
1 # Find include directory.
2 find_path(Iconv_INCLUDE_DIR NAMES "iconv.h" DOC "iconv include directory")
3 mark_as_advanced(Iconv_INCLUDE_DIR)
5 # Find all iconv libraries.
6 find_library(Iconv_LIBRARY "iconv"
7   DOC "libiconv libraries (if not in the C library)")
8 mark_as_advanced(Iconv_LIBRARY)
10 include(FindPackageHandleStandardArgs)
11 find_package_handle_standard_args(Iconv DEFAULT_MSG Iconv_INCLUDE_DIR)
13 if(Iconv_FOUND)
14   set(Iconv_INCLUDE_DIRS "${Iconv_INCLUDE_DIR}")
15   if(Iconv_LIBRARY)
16     set(Iconv_LIBRARIES "${Iconv_LIBRARY}")
17   else()
18     unset(Iconv_LIBRARIES)
19   endif()
20 endif()