X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi_eeprom%2FCMakeLists.txt;h=fff31a855e1ffe283141cf2c68dd3bc9f8ca8aa2;hp=04fce52849a8219f5ef4aabf22a03ec4aaddc3ca;hb=ade814a59b4660c5af865dd86cdd48cfa55e1ae5;hpb=e47d7975a1c8648e3a86f980eb01eaf96c86a023 diff --git a/ftdi_eeprom/CMakeLists.txt b/ftdi_eeprom/CMakeLists.txt index 04fce52..fff31a8 100644 --- a/ftdi_eeprom/CMakeLists.txt +++ b/ftdi_eeprom/CMakeLists.txt @@ -9,11 +9,25 @@ if (FTDI_EEPROM) LINK_DIRECTORIES(${Confuse_LIBRARY_DIRS}) SET(libs ${libs} ${Confuse_LIBRARIES}) - if(Confuse_FOUND) + if(Confuse_FOUND_DISABLED_FOR_NOW) 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(${CMAKE_SOURCE_DIR}/src) + include_directories(${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 ftdi) else(Confuse_FOUND) message(STATUS "libConfuse not found, won't build ftdi_eeprom")