X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi_eeprom%2FCMakeLists.txt;h=6c59e2cd352deed4e9ecd34175774e6a18c8e698;hp=573b8ec254896ec91d88e2b426edd3197ec8ef1a;hb=19f1452cde9bfe9da0e2830af128fae958ae877a;hpb=602adb256f131ef673adb18f8581ff249b356077 diff --git a/ftdi_eeprom/CMakeLists.txt b/ftdi_eeprom/CMakeLists.txt index 573b8ec..6c59e2c 100644 --- a/ftdi_eeprom/CMakeLists.txt +++ b/ftdi_eeprom/CMakeLists.txt @@ -3,6 +3,7 @@ option(FTDI_EEPROM "Build ftdi_eeprom" ON) if ( FTDI_EEPROM ) find_package ( Confuse ) + find_package ( Libintl ) else(FTDI_EEPROM) message(STATUS "ftdi_eeprom build is disabled") endif () @@ -12,9 +13,14 @@ if ( CONFUSE_FOUND ) message(STATUS "Building ftdi_eeprom") include_directories ( ${CONFUSE_INCLUDE_DIRS} ) - list ( APPEND libs ${CONFUSE_LIBRARIES} ) + + if ( LIBINTL_FOUND ) + include_directories ( ${LIBINTL_INCLUDE_DIR} ) + list ( APPEND libs ${LIBINTL_LIBRARIES} ) + endif () + # Version defines set ( EEPROM_MAJOR_VERSION 0 ) set ( EEPROM_MINOR_VERSION 17 ) @@ -29,9 +35,10 @@ if ( CONFUSE_FOUND ) ) add_executable ( ftdi_eeprom main.c ) - target_link_libraries ( ftdi_eeprom ftdi1 ) - target_link_libraries ( ftdi_eeprom ${CONFUSE_LIBRARIES} ) - + target_link_libraries ( ftdi_eeprom ftdi1 ${CONFUSE_LIBRARIES} ) + if ( LIBINTL_FOUND ) + target_link_libraries ( ftdi_eeprom ${LIBINTL_LIBRARIES} ) + endif () install ( TARGETS ftdi_eeprom DESTINATION bin ) else () message ( STATUS "libConfuse not found, won't build ftdi_eeprom" )