1 find_path(ICONV_INCLUDE_DIR NAMES iconv.h)
3 find_library(ICONV_LIBRARY NAMES iconv)
5 set(ICONV_SYMBOL_FOUND "${ICONV_LIBRARY}")
7 check_function_exists(iconv_open ICONV_SYMBOL_FOUND)
10 include(FindPackageHandleStandardArgs)
11 find_package_handle_standard_args(Iconv DEFAULT_MESSAGE ICONV_INCLUDE_DIR ICONV_SYMBOL_FOUND)
14 set(ICONV_LIBRARIES "${ICONV_LIBRARY}")
18 set(ICONV_INCLUDE_DIRS "${ICONV_INCLUDE_DIR}")
20 mark_as_advanced(ICONV_LIBRARY ICONV_INCLUDE_DIR)