sn0w75/MikuMikuPenguin — pull request #68 by hisagiazu (2014-02-27 14:26:43+00:00)
Title: cmakeにおいてiconvのパスを検索するように修正

OSX Mavericks環境でビルドをすると，iconvのincludeとlibraryが無いため次のエラーが発生しました．

Linking CXX executable ../MMPEditor
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
sjisToUTF8(char const*) in libmmp.a(texthandle.cpp.o)
UTF8ToSJIS(char const*) in libmmp.a(texthandle.cpp.o)
"_iconv_close", referenced from:
sjisToUTF8(char const*) in libmmp.a(texthandle.cpp.o)
UTF8ToSJIS(char const*) in libmmp.a(texthandle.cpp.o)
"_iconv_open", referenced from:
sjisToUTF8(char const*) in libmmp.a(texthandle.cpp.o)
UTF8ToSJIS(char const*) in libmmp.a(texthandle.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [MMPEditor] Error 1
make[1]: *** [src/CMakeFiles/MMPEditor.dir/all] Error 2
make: *** [all] Error 2

そこで，CMakeLists.txtをIconvの検索も行うように修正しました．
また，検索させるためにFindIconv.cmakeを追加しました．