mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-02 05:36:36 +00:00
easy reading condition
This commit is contained in:
@@ -29,23 +29,23 @@ IF(UART_REQUIRED)
|
||||
ENDIF(UART_REQUIRED)
|
||||
|
||||
IF(I2C_REQUIRED)
|
||||
IF(NOT UNIX OR APPLE)
|
||||
IF(UNIX AND NOT APPLE)
|
||||
LIST(APPEND BUSES_SOURCES buses/i2c)
|
||||
ELSE(UNIX AND NOT APPLE)
|
||||
# Only Linux is supported at the moment
|
||||
#LIST(APPEND BUSES_SOURCES ../contrib/win32/libnfc/buses/i2c)
|
||||
MESSAGE( FATAL_ERROR "I2C is only (yet) supported in Linux!" )
|
||||
ELSE(NOT UNIX OR APPLE)
|
||||
LIST(APPEND BUSES_SOURCES buses/i2c)
|
||||
ENDIF(NOT UNIX OR APPLE)
|
||||
ENDIF(UNIX AND NOT APPLE)
|
||||
ENDIF(I2C_REQUIRED)
|
||||
|
||||
IF(SPI_REQUIRED)
|
||||
IF(NOT UNIX OR APPLE)
|
||||
IF(UNIX AND NOT APPLE)
|
||||
LIST(APPEND BUSES_SOURCES buses/spi)
|
||||
ELSE(UNIX AND NOT APPLE)
|
||||
# Only Linux is supported at the moment
|
||||
#LIST(APPEND BUSES_SOURCES ../contrib/win32/libnfc/buses/spi)
|
||||
MESSAGE( FATAL_ERROR "SPI is only (yet) supported in Linux!" )
|
||||
ELSE(NOT UNIX OR APPLE)
|
||||
LIST(APPEND BUSES_SOURCES buses/spi)
|
||||
ENDIF(NOT UNIX OR APPLE)
|
||||
ENDIF(UNIX AND NOT APPLE)
|
||||
ENDIF(SPI_REQUIRED)
|
||||
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/buses)
|
||||
|
||||
Reference in New Issue
Block a user