cmake_minimum_required(VERSION 3.1)

project(lobaro_coap C)


file(GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_LIST_DIR}/src/*.h ${CMAKE_CURRENT_LIST_DIR}/src/*.c)
add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES} src/liblobaro_coap.c)
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}/src)

set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 99)
if (DEFINED __INIT_LOBARO_BUILD)
    project(lobaro-coap)

    include(${CPATH}/src/github.com/lobaro/c-build/build.cmake)

    cbuild_module("lobaro/lobaro-coap/test")

    # cbuild_dependency(_ github.com/lobaro/cpp-utils)
else()
    cmake_minimum_required(VERSION 3.1)

    project(lobaro_coap C)

    file(GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_LIST_DIR}/src/*.h ${CMAKE_CURRENT_LIST_DIR}/src/*.c)
    add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES} src/liblobaro_coap.c)
    target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}/src)

    set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 99)
endif()

Bring Board and App to read one-wire temperature.
Bring Board and App to read one-wire temperature.
