src/CMakeLists.txt
changeset 52 c9401e6a62cb
parent 33 56571d34d754
child 53 ec1eec96e433
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -36,6 +36,15 @@
 ENDIF (MSGFMT_PROG)
 
 # Search required libraries
+FIND_LIBRARY(GETTEXT_LIB NAMES gettextlib
+	PATHS /usr/lib/ /usr/local/lib)
+IF (GETTEXT_LIB)
+	TARGET_LINK_LIBRARIES(mcbot ${GETTEXT_LIB})
+	TARGET_LINK_LIBRARIES(dbtool ${GETTEXT_LIB})
+ELSE(GETTEXT_LIB)
+	MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext")
+ENDIF (GETTEXT_LIB)
+
 FIND_LIBRARY(GDBM_LIB NAMES gdbm
 	PATHS /usr/lib/ /usr/local/lib)
 IF (GDBM_LIB)