Commit | Line | Data |
---|---|---|
68d2167b YY |
1 | # Includes |
2 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR} | |
7828006e YY |
3 | ${CMAKE_CURRENT_BINARY_DIR} |
4 | ) | |
68d2167b YY |
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) | |
26fc55b0 | 17 | add_executable(async async.c) |
7c5aa3b8 | 18 | if(NOT MINGW) |
7828006e | 19 | add_executable(purge_test purge_test.c) |
7c5aa3b8 | 20 | endif(NOT MINGW) |
68d2167b YY |
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) | |
26fc55b0 | 33 | target_link_libraries(async ftdi1) |
7c5aa3b8 | 34 | if(NOT MINGW) |
7828006e | 35 | target_link_libraries(purge_test ftdi1) |
7c5aa3b8 | 36 | endif(NOT MINGW) |
68d2167b YY |
37 | |
38 | # libftdi++ examples | |
39 | if( FTDIPP ) | |
e7f734f8 | 40 | include_directories(BEFORE ${PROJECT_SOURCE_DIR}/ftdipp |
7828006e YY |
41 | ${Boost_INCLUDE_DIRS} |
42 | ) | |
68d2167b | 43 | |
7828006e YY |
44 | # Target |
45 | add_executable(find_all_pp find_all_pp.cpp) | |
68d2167b | 46 | |
7828006e YY |
47 | # Linkage |
48 | target_link_libraries(find_all_pp ftdipp1) | |
68d2167b YY |
49 | endif( FTDIPP ) |
50 | ||
51 | # Source includes | |
e7f734f8 | 52 | include_directories(BEFORE ${PROJECT_SOURCE_DIR}/src) |