X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=examples%2FCMakeLists.txt;h=1263c6260ddbb13d484b89c8f45bf4bfcb45a702;hp=11e5aabf14856511e750936b07f858c9ac7b3386;hb=d160863c527c8a3fdf1e821a64c59192a2fc2150;hpb=11bc93d829ed92e617c112b5e4a5138965cca822 diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 11e5aab..1263c62 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -2,7 +2,7 @@ option(EXAMPLES "Build example programs" ON) if (EXAMPLES) # Includes - include( ${CMAKE_CURRENT_SOURCE_DIR} + include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) @@ -21,16 +21,16 @@ if (EXAMPLES) add_executable(eeprom eeprom.c) # Linkage - target_link_libraries(simple ftdi) - target_link_libraries(bitbang ftdi) - target_link_libraries(bitbang2 ftdi) - target_link_libraries(bitbang_cbus ftdi) - target_link_libraries(bitbang_ft2232 ftdi) - target_link_libraries(find_all ftdi) - target_link_libraries(serial_test ftdi) - target_link_libraries(baud_test ftdi) - target_link_libraries(stream_test ftdi) - target_link_libraries(eeprom ftdi) + target_link_libraries(simple ftdi1) + target_link_libraries(bitbang ftdi1) + target_link_libraries(bitbang2 ftdi1) + target_link_libraries(bitbang_cbus ftdi1) + target_link_libraries(bitbang_ft2232 ftdi1) + target_link_libraries(find_all ftdi1) + target_link_libraries(serial_test ftdi1) + target_link_libraries(baud_test ftdi1) + target_link_libraries(stream_test ftdi1) + target_link_libraries(eeprom ftdi1) # libftdi++ examples if(FTDI_BUILD_CPP) @@ -43,7 +43,7 @@ if (EXAMPLES) add_executable(find_all_pp find_all_pp.cpp) # Linkage - target_link_libraries(find_all_pp ftdipp) + target_link_libraries(find_all_pp ftdipp1) endif(Boost_FOUND) endif(FTDI_BUILD_CPP)