X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=ftdi_eeprom%2FCMakeLists.txt;h=a843b8e6c85225cd44c73b8791e946771aa3e77c;hb=afb9082460cf8602b1843e1a698ec498e3d38d7b;hp=04fce52849a8219f5ef4aabf22a03ec4aaddc3ca;hpb=a9dddb4dd1f45377a7d978adfd6b2b7ec25779c6;p=libftdi diff --git a/ftdi_eeprom/CMakeLists.txt b/ftdi_eeprom/CMakeLists.txt index 04fce52..a843b8e 100644 --- a/ftdi_eeprom/CMakeLists.txt +++ b/ftdi_eeprom/CMakeLists.txt @@ -13,7 +13,24 @@ if (FTDI_EEPROM) set(FTDI_BUILD_EEPROM True PARENT_SCOPE) message(STATUS "Building ftdi_eeprom") - # TODO: Add real ftdi_eeprom source + binary + # Version defines + set(EEPROM_MAJOR_VERSION 0) + set(EEPROM_MINOR_VERSION 17) + set(EEPROM_VERSION_STRING ${EEPROM_MAJOR_VERSION}.${EEPROM_MINOR_VERSION}) + + include_directories(BEFORE ${CMAKE_SOURCE_DIR}/src) + include_directories(BEFORE ${CMAKE_BINARY_DIR}/ftdi_eeprom) + + configure_file( + "ftdi_eeprom_version.h.in" + "${CMAKE_BINARY_DIR}/ftdi_eeprom/ftdi_eeprom_version.h" + ) + + add_executable(ftdi_eeprom main.c) + target_link_libraries(ftdi_eeprom ftdi1) + target_link_libraries(ftdi_eeprom ${Confuse_LIBRARIES}) + + install(TARGETS ftdi_eeprom DESTINATION bin) else(Confuse_FOUND) message(STATUS "libConfuse not found, won't build ftdi_eeprom")