mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move FTDI and Grantlee configuration out of CMakeLists.txt
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
cef86356f5
commit
f60e86b19c
4 changed files with 30 additions and 25 deletions
8
cmake/Modules/HandleFtdiSupport.cmake
Normal file
8
cmake/Modules/HandleFtdiSupport.cmake
Normal file
|
@ -0,0 +1,8 @@
|
|||
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()
|
Loading…
Add table
Add a link
Reference in a new issue