uart_ow: Make onewire functionality optional but on by default
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -9,6 +9,11 @@ if (FIRMATA)
|
||||
add_subdirectory (firmata)
|
||||
endif ()
|
||||
|
||||
if (ONEWIRE)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DONEWIRE=1")
|
||||
add_subdirectory (uart_ow)
|
||||
endif ()
|
||||
|
||||
include_directories(
|
||||
${mraa_LIB_INCLUDE_DIRS}
|
||||
)
|
||||
@@ -23,7 +28,6 @@ set (mraa_LIB_SRCS_NOAUTO
|
||||
${PROJECT_SOURCE_DIR}/src/uart/uart.c
|
||||
${PROJECT_SOURCE_DIR}/src/iio/iio.c
|
||||
${mraa_LIB_SRCS_NOAUTO}
|
||||
${PROJECT_SOURCE_DIR}/src/uart_ow/uart_ow.c
|
||||
)
|
||||
|
||||
set (mraa_LIB_X86_SRCS_NOAUTO
|
||||
|
||||
Reference in New Issue
Block a user