Commit | Line | Data |
---|---|---|
0b2d00fc MV |
1 | # Includes |
2 | include( ${CMAKE_CURRENT_SOURCE_DIR} | |
3 | ${CMAKE_CURRENT_BINARY_DIR} | |
4 | ) | |
5 | ||
6 | # Source includes | |
7 | include_directories(${CMAKE_SOURCE_DIR}/src) | |
8 | ||
9 | # Targets | |
10 | add_executable(simple simple.c) | |
11 | add_executable(bitbang bitbang.c) | |
12 | add_executable(bitbang2 bitbang2.c) | |
13 | add_executable(bitbang_cbus bitbang_cbus.c) | |
14 | add_executable(bitbang_ft2232 bitbang_ft2232.c) | |
2d30c7d4 | 15 | add_executable(find_all find_all.c) |
6167b919 | 16 | add_executable(serial_read serial_read.c) |
0b2d00fc MV |
17 | |
18 | # Linkage | |
19 | target_link_libraries(simple ftdi) | |
20 | target_link_libraries(bitbang ftdi) | |
21 | target_link_libraries(bitbang2 ftdi) | |
22 | target_link_libraries(bitbang_cbus ftdi) | |
23 | target_link_libraries(bitbang_ft2232 ftdi) | |
2d30c7d4 | 24 | target_link_libraries(find_all ftdi) |
6167b919 | 25 | target_link_libraries(serial_read ftdi) |
0b2d00fc MV |
26 | |
27 | # libftdi++ examples | |
28 | if(FTDI_BUILD_CPP) | |
29 | message(STATUS "Building libftdi++ examples.") | |
30 | include_directories(${CMAKE_SOURCE_DIR}/ftdipp) | |
31 | ||
32 | # Targest | |
2d30c7d4 | 33 | add_executable(find_all_pp find_all_pp.cpp) |
0b2d00fc MV |
34 | |
35 | # Linkage | |
340152b2 | 36 | target_link_libraries(find_all_pp ftdipp) |
0b2d00fc | 37 | endif() |