subsurface/cmake/Modules/HandleFtdiSupport.cmake

9 lines
229 B
CMake
Raw Normal View History

if(FTDISUPPORT)
message(STATUS "building with libftdi support")
pkg_config_library(LIBFTDI libftdi QUIET)
if (NOT LIBFTDI_FOUND)
pkg_config_library(LIBFTDI libftdi1 REQUIRED)
endif()
add_definitions(-DSERIAL_FTDI)
endif()