src/CMakeLists.txt
changeset 52 c9401e6a62cb
parent 33 56571d34d754
child 53 ec1eec96e433
equal deleted inserted replaced
51:5d9aed3948a6 52:c9401e6a62cb
    34 ELSE(MSGFMT_PROG)
    34 ELSE(MSGFMT_PROG)
    35 	MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext")
    35 	MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext")
    36 ENDIF (MSGFMT_PROG)
    36 ENDIF (MSGFMT_PROG)
    37 
    37 
    38 # Search required libraries
    38 # Search required libraries
       
    39 FIND_LIBRARY(GETTEXT_LIB NAMES gettextlib
       
    40 	PATHS /usr/lib/ /usr/local/lib)
       
    41 IF (GETTEXT_LIB)
       
    42 	TARGET_LINK_LIBRARIES(mcbot ${GETTEXT_LIB})
       
    43 	TARGET_LINK_LIBRARIES(dbtool ${GETTEXT_LIB})
       
    44 ELSE(GETTEXT_LIB)
       
    45 	MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext")
       
    46 ENDIF (GETTEXT_LIB)
       
    47 
    39 FIND_LIBRARY(GDBM_LIB NAMES gdbm
    48 FIND_LIBRARY(GDBM_LIB NAMES gdbm
    40 	PATHS /usr/lib/ /usr/local/lib)
    49 	PATHS /usr/lib/ /usr/local/lib)
    41 IF (GDBM_LIB)
    50 IF (GDBM_LIB)
    42 	TARGET_LINK_LIBRARIES(mcbot ${GDBM_LIB})
    51 	TARGET_LINK_LIBRARIES(mcbot ${GDBM_LIB})
    43 	TARGET_LINK_LIBRARIES(dbtool ${GDBM_LIB})
    52 	TARGET_LINK_LIBRARIES(dbtool ${GDBM_LIB})