Commit | Line | Data |
---|---|---|
39042f17 MZ |
1 | cmake_minimum_required ( VERSION 2.8 ) |
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 | |
12 | DESTINATION bin ) | |
c729b243 | 13 |