CMake: bump the minimal required version to 3.5
[libftdi] / examples / cmake_example / CMakeLists.txt
... / ...
CommitLineData
1cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
2
3project ( example C )
4
5find_package ( LibFTDI1 NO_MODULE REQUIRED )
6include ( ${LIBFTDI_USE_FILE} )
7
8add_executable ( example main.c )
9target_link_libraries( example ${LIBFTDI_LIBRARIES} )
10
11install ( TARGETS example
12 DESTINATION bin
13)