summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: e593cb8bbb3c3a3265303100826427e15661ed0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(hal-backend-bluetooth-usb C)

IF(ENABLE_DLOG STREQUAL on)
	ADD_DEFINITIONS("-DFEATURE_DLOG")
ENDIF()

FOREACH(flag ${package_CFLAGS})
	SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")

INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.APLv2 DESTINATION ${HAL_LICENSE_DIR}/${PROJECT_NAME})

ADD_SUBDIRECTORY(scripts)
ADD_SUBDIRECTORY(src)