find_path(LibIntl_INCLUDE_DIRS NAMES libintl.h) find_library(LibIntl_LIBRARIES NAMES intl libintl) include(CheckCXXSymbolExists) check_cxx_symbol_exists(gettext libintl.h LibIntl_SYMBOL_FOUND) if (LibIntl_SYMBOL_FOUND) set(HAVE_LIBINTL TRUE) else() set(HAVE_LIBINTL FALSE) endif()