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) | |
15 | add_executable(findall find_all.c) | |
16 | ||
17 | # Linkage | |
18 | target_link_libraries(simple ftdi) | |
19 | target_link_libraries(bitbang ftdi) | |
20 | target_link_libraries(bitbang2 ftdi) | |
21 | target_link_libraries(bitbang_cbus ftdi) | |
22 | target_link_libraries(bitbang_ft2232 ftdi) | |
23 | target_link_libraries(findall ftdi) | |
24 | ||
25 | # libftdi++ examples | |
26 | if(FTDI_BUILD_CPP) | |
27 | message(STATUS "Building libftdi++ examples.") | |
28 | include_directories(${CMAKE_SOURCE_DIR}/ftdipp) | |
29 | ||
30 | # Targest | |
31 | add_executable(findall-cpp find_all.cpp) | |
32 | add_executable(memorytest memorytest.cpp) | |
33 | ||
34 | # Linkage | |
35 | target_link_libraries(findall-cpp ftdi_cpp) | |
36 | target_link_libraries(memorytest ftdi_cpp) | |
37 | ||
38 | endif() | |
39 | ||
40 | ||
41 |