X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi_eeprom%2FCMakeLists.txt;h=a843b8e6c85225cd44c73b8791e946771aa3e77c;hp=3f1d7dc96384a62eea046416f66d82e5c5a22019;hb=1383a2c4d1c056f3ac17ee15ed21e9aab03db1cc;hpb=fa1def99efffbb03b8ab0b1d43a122348a118670 diff --git a/ftdi_eeprom/CMakeLists.txt b/ftdi_eeprom/CMakeLists.txt index 3f1d7dc..a843b8e 100644 --- a/ftdi_eeprom/CMakeLists.txt +++ b/ftdi_eeprom/CMakeLists.txt @@ -18,8 +18,8 @@ if (FTDI_EEPROM) 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) + include_directories(BEFORE ${CMAKE_SOURCE_DIR}/src) + include_directories(BEFORE ${CMAKE_BINARY_DIR}/ftdi_eeprom) configure_file( "ftdi_eeprom_version.h.in" @@ -27,9 +27,11 @@ if (FTDI_EEPROM) ) add_executable(ftdi_eeprom main.c) - target_link_libraries(ftdi_eeprom ftdi) + 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") endif(Confuse_FOUND)