diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-11-17 18:23:32 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-16 07:59:36 -0800 |
commit | f60e86b19c6d785a91bc126ac587bf9f3ee87369 (patch) | |
tree | 0e8386ba9e76e24e2c0bb9b2f39fb2ce9557ae14 /cmake/Modules/HandleFtdiSupport.cmake | |
parent | cef86356f5e4b84c89305de3de9e614a62d18884 (diff) | |
download | subsurface-f60e86b19c6d785a91bc126ac587bf9f3ee87369.tar.gz |
Move FTDI and Grantlee configuration out of CMakeLists.txt
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Diffstat (limited to 'cmake/Modules/HandleFtdiSupport.cmake')
-rw-r--r-- | cmake/Modules/HandleFtdiSupport.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/Modules/HandleFtdiSupport.cmake b/cmake/Modules/HandleFtdiSupport.cmake new file mode 100644 index 000000000..b4ad685b3 --- /dev/null +++ b/cmake/Modules/HandleFtdiSupport.cmake @@ -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() |