I have not found one module to find iconv library in cmake, so I wrote one, here is the code:<br><br># Find iconv library<br># <br># Author: Eddy Xu &lt;<a href="mailto:eddyxu@gmail.com">eddyxu@gmail.com</a>&gt;<br>#<br># Released under BSD license
<br># <br>#&nbsp; ICONV_INCLUDE_DIRS&nbsp;&nbsp; - where to find iconv.h, etc<br>#&nbsp; ICONV_LIBRARIES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Lists of libraries when using iconv<br>#&nbsp; ICONV_FOUND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - True if iconv found<br><br><br># Look for the header file<br>FIND_PATH( ICONV_INCLUDE_DIR NAMES 
iconv.h )<br>MARK_AS_ADVANCED( ICONV_INCLUDE_DIR )<br><br># Look for the library<br>FIND_LIBRARY( ICONV_LIBRARY NAMES iconv )<br>MARK_AS_ADVANCED( ICONV_LIBRARY )<br><br># Copy the result to output variables<br>IF(ICONV_INCLUDE_DIR AND ICONV_LIBRARY)
<br>&nbsp; SET(ICONV_FOUND 1)<br>&nbsp; SET(ICONV_LIBRARIES ${ICONV_LIBRARY})<br>&nbsp; SET(ICONV_INCLUDE_DIRS ${ICONV_INCLUDE_DIR})<br>ELSE(ICONV_INCLUDE_DIR AND ICONV_LIBRARY)<br>&nbsp; SET(ICONV_FOUND 0)<br>&nbsp; SET(ICONV_LIBRARIES)<br>&nbsp; SET(ICONV_INCLUDE_DIRS)
<br>ENDIF(ICONV_INCLUDE_DIR AND ICONV_LIBRARY)<br><br># Report results<br>IF(NOT ICONV_FOUND)<br>&nbsp; SET(ICONV_DIR_MESSAGE<br>&nbsp;&nbsp;&nbsp; &quot;Iconv was not found. Make sure ICONV_LIBRARY and ICONV_INCLUDE_DIR are set.&quot;)<br>&nbsp;&nbsp;&nbsp; IF(NOT ICONV_FIND_QUIETLY)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MESSAGE(STATUS ${ICONV_DIR_MESSAGE})<br>&nbsp;&nbsp;&nbsp; ELSE(NOT ICONV_FIND_QUIETLY)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF(ICONV_FIND_REQUIRED)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MESSAGE(FETAL_ERROR ${ICONV_DIR_MESSAGE})<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDIF(ICONV_FIND_REQUIRED)<br>&nbsp;&nbsp;&nbsp; ENDIF(NOT ICONV_FIND_QUIETLY)
<br>ENDIF(NOT ICONV_FOUND)<br><br>I hope it helps<br>