On the project I'm working on, one of the developers expressed interest in utilizing gettext to handle internationalization and localization. I found that CMake 2.6.0 and newer have a FindGettext.cmake module which would allow us to utilize gettext for this. However, I've made our CMake build files able to function under CMake 2.4.x as well, due to our users compiling our software on shells that may not have the latest CMake, and there is no FindGettext.cmake with those versions. Is it possible to include FindGettext.cmake in the root directory of my project and utilize that if CMake 2.4.x is used?

Another related question has to do with linking to gettext. I know that on Linux, gettext is built into gcc and doesn't need to be linked. But I use FreeBSD as my main system to compile our project, and would have to link to libintl myself. Would that just be a matter of searching for the intl library and adding it to the linker flags then? And would this also apply to linking on Windows as well?

Thanks,
Naram Qashat
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to