README.md edited online with Bitbucket
[swg-src.git] / src / cmake / win32 / FindIconv.cmake
blob76d3ece6117dcba33e1d11c5836cbf95fc252ce6
2 find_path(ICONV_ROOT
3         PATH_SUFFIXES libiconv
4         PATHS ${SWG_EXTERNALS_FIND}
5     NAMES include/iconv.h
8 find_path(ICONV_INCLUDE_DIR iconv.h
9     HINTS
10         $ENV{ICONV_ROOT}
11     PATH_SUFFIXES include
12     PATHS
13         ${ICONV_ROOT}
14         ${ICONV_INCLUDEDIR}
17 find_library(ICONV_LIBRARY
18     NAMES libiconv
19     PATHS ${ICONV_ROOT}/lib
20     HINTS
21         $ENV{ICONV_ROOT}
22         ${ICONV_ROOT}
23         ${ICONV_LIBRARYDIR}
26 # handle the QUIETLY and REQUIRED arguments and set OPENAL_FOUND to TRUE if
27 # all listed variables are TRUE
28 include(FindPackageHandleStandardArgs)
29 find_package_handle_standard_args(ICONV DEFAULT_MSG ICONV_LIBRARY ICONV_INCLUDE_DIR)
31 mark_as_advanced(ICONV_ROOT ICONV_INCLUDE_DIR ICONV_LIBRARY)