FindIconv.cmake 451 B

12345678910111213141516171819
  1. # - Try to find iconv
  2. # Once done, this will define
  3. #
  4. # Iconv_FOUND - system has iconv
  5. # Iconv_INCLUDE_DIRS - the iconv include directories
  6. # Iconv_LIBRARIES - link these to use iconv
  7. include(LibFindMacros)
  8. find_path(ICONV_INCLUDE_DIR NAMES iconv.h)
  9. find_library(ICONV_LIBRARY NAMES iconv libiconv)
  10. set(Iconv_PROCESS_INCLUDES ICONV_INCLUDE_DIR)
  11. if(ICONV_LIBRARY)
  12. set(Iconv_PROCESS_LIBS ICONV_LIBRARY)
  13. endif()
  14. libfind_process(Iconv)