| 1 |
# Includes |
| 2 |
include_directories(${CMAKE_CURRENT_SOURCE_DIR} |
| 3 |
${CMAKE_CURRENT_BINARY_DIR} |
| 4 |
) |
| 5 |
|
| 6 |
# Targets |
| 7 |
add_executable(simple simple.c) |
| 8 |
add_executable(bitbang bitbang.c) |
| 9 |
add_executable(bitbang2 bitbang2.c) |
| 10 |
add_executable(bitbang_cbus bitbang_cbus.c) |
| 11 |
add_executable(bitbang_ft2232 bitbang_ft2232.c) |
| 12 |
add_executable(find_all find_all.c) |
| 13 |
add_executable(serial_test serial_test.c) |
| 14 |
add_executable(baud_test baud_test.c) |
| 15 |
add_executable(stream_test stream_test.c) |
| 16 |
add_executable(eeprom eeprom.c) |
| 17 |
add_executable(async async.c) |
| 18 |
if (NOT MINGW) |
| 19 |
add_executable(purge_test purge_test.c) |
| 20 |
endif (NOT MINGW) |
| 21 |
|
| 22 |
# Linkage |
| 23 |
target_link_libraries(simple ftdi1) |
| 24 |
target_link_libraries(bitbang ftdi1) |
| 25 |
target_link_libraries(bitbang2 ftdi1) |
| 26 |
target_link_libraries(bitbang_cbus ftdi1) |
| 27 |
target_link_libraries(bitbang_ft2232 ftdi1) |
| 28 |
target_link_libraries(find_all ftdi1) |
| 29 |
target_link_libraries(serial_test ftdi1) |
| 30 |
target_link_libraries(baud_test ftdi1) |
| 31 |
target_link_libraries(stream_test ftdi1) |
| 32 |
target_link_libraries(eeprom ftdi1) |
| 33 |
target_link_libraries(async ftdi1) |
| 34 |
if (NOT MINGW) |
| 35 |
target_link_libraries(purge_test ftdi1) |
| 36 |
endif (NOT MINGW) |
| 37 |
|
| 38 |
# libftdi++ examples |
| 39 |
if (FTDIPP) |
| 40 |
include_directories(BEFORE ${PROJECT_SOURCE_DIR}/ftdipp |
| 41 |
) |
| 42 |
|
| 43 |
# Target |
| 44 |
add_executable(find_all_pp find_all_pp.cpp) |
| 45 |
|
| 46 |
# Linkage |
| 47 |
target_link_libraries(find_all_pp ftdipp1) |
| 48 |
endif (FTDIPP) |
| 49 |
|
| 50 |
# Source includes |
| 51 |
include_directories(BEFORE ${PROJECT_SOURCE_DIR}/src) |