Use PKG_SEARCH_MODULE() to find libftdi.h on distributions not having it in the standard directories. Thanks to Per Øyvind Karlsen

This commit is contained in:
Micke Prag 2011-10-07 09:37:23 +00:00
parent 901ddebe01
commit eb073d9fd0

View file

@ -161,6 +161,9 @@ IF (FTDI_ENGINE STREQUAL "ftd2xx")
LIST(APPEND telldus-service_LIBRARIES ${FTD2XX_LIBRARY})
ELSE (FTDI_ENGINE STREQUAL "ftd2xx")
FIND_LIBRARY(FTDI_LIBRARY ftdi)
INCLUDE(FindPkgConfig)
PKG_SEARCH_MODULE(FTDI libftdi)
INCLUDE_DIRECTORIES( ${FTDI_INCLUDEDIR} )
ADD_DEFINITIONS( -DLIBFTDI )
LIST(APPEND telldus-service_SRCS TellStick_libftdi.cpp )
LIST(APPEND telldus-service_LIBRARIES ${FTDI_LIBRARY})