Commit | Line | Data |
---|---|---|
61a6bac9 | 1 | cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) |
39042f17 MZ |
2 | |
3 | project ( example C ) | |
4 | ||
c729b243 | 5 | find_package ( LibFTDI1 NO_MODULE REQUIRED ) |
39042f17 MZ |
6 | include ( ${LIBFTDI_USE_FILE} ) |
7 | ||
8 | add_executable ( example main.c ) | |
9 | target_link_libraries( example ${LIBFTDI_LIBRARIES} ) | |
10 | ||
11 | install ( TARGETS example | |
7828006e YY |
12 | DESTINATION bin |
13 | ) |