2 option(FTDI_EEPROM "Build ftdi_eeprom" ON)
5 find_package ( Confuse )
6 find_package ( Libintl )
8 message(STATUS "ftdi_eeprom build is disabled")
13 message(STATUS "Building ftdi_eeprom")
15 include_directories ( ${CONFUSE_INCLUDE_DIRS} ${LIBINTL_INCLUDE_DIR} )
17 list ( APPEND libs ${CONFUSE_LIBRARIES} )
20 set ( EEPROM_MAJOR_VERSION 0 )
21 set ( EEPROM_MINOR_VERSION 17 )
22 set ( EEPROM_VERSION_STRING ${EEPROM_MAJOR_VERSION}.${EEPROM_MINOR_VERSION} )
24 include_directories ( BEFORE ${CMAKE_SOURCE_DIR}/src )
25 include_directories ( BEFORE ${CMAKE_CURRENT_BINARY_DIR} )
28 ftdi_eeprom_version.h.in
29 ${CMAKE_CURRENT_BINARY_DIR}/ftdi_eeprom_version.h
32 add_executable ( ftdi_eeprom main.c )
33 target_link_libraries ( ftdi_eeprom ftdi1 )
34 target_link_libraries ( ftdi_eeprom ${CONFUSE_LIBRARIES} ${LIBINTL_LIBRARIES} )
36 install ( TARGETS ftdi_eeprom DESTINATION bin )
38 message ( STATUS "libConfuse not found, won't build ftdi_eeprom" )