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)
14 set(Iconv_INCLUDE_DIRS "${Iconv_INCLUDE_DIR}")
16 set(Iconv_LIBRARIES "${Iconv_LIBRARY}")
18 unset(Iconv_LIBRARIES)