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)