| 1 |
cmake_minimum_required(VERSION 3.5 FATAL_ERROR) |
| 2 |
|
| 3 |
project(example C) |
| 4 |
|
| 5 |
find_package(LibFTDI1 NO_MODULE REQUIRED) |
| 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 |
| 13 |
) |