easy reading condition
This commit is contained in:
parent
9cece8b55d
commit
f56bbabf6c
2 changed files with 13 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue