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