initial dummy
[project/usbmode.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 PROJECT(usbmode C)
4 ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
5
6 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
7
8 SET(SOURCES main.c)
9 SET(LIBS ubox blobmsg_json)
10
11 IF(DEBUG)
12   ADD_DEFINITIONS(-DDEBUG -g3)
13 ENDIF()
14
15 ADD_EXECUTABLE(usbmode ${SOURCES})
16 TARGET_LINK_LIBRARIES(usbmode ${LIBS})
17
18 INSTALL(TARGETS usbmode
19         RUNTIME DESTINATION sbin
20 )