1 cmake_minimum_required(VERSION 2.6)
4 ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
6 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
9 SET(LIBS ubox blobmsg_json)
12 ADD_DEFINITIONS(-DDEBUG -g3)
15 ADD_EXECUTABLE(usbmode ${SOURCES})
16 TARGET_LINK_LIBRARIES(usbmode ${LIBS})
18 INSTALL(TARGETS usbmode
19 RUNTIME DESTINATION sbin