cmake_minimum_required(VERSION 3.0)

PROJECT(tr104daemon C)

OPTION(DM_ENABLE_UBUS "Build with UBus Support" OFF)
OPTION(DM_ENABLE_JSON_RPC "Build with JSON-RPC Support" OFF)

IF(DM_ENABLE_UBUS)
	add_subdirectory(ubus)
ELSEIF(DM_ENABLE_JSON_RPC)
	add_subdirectory(json_rpc)
ENDIF()
