mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
53 lines
No EOL
1.1 KiB
CMake
Executable file
53 lines
No EOL
1.1 KiB
CMake
Executable file
cmake_minimum_required(VERSION 2.6)
|
|
PROJECT(dawn)
|
|
|
|
INCLUDE_DIRECTORIES(include)
|
|
|
|
ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unknown-warning-option -Wno-format-truncation)
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
|
|
|
SET(SOURCES
|
|
main.c
|
|
|
|
storage/datastorage.c
|
|
include/datastorage.h
|
|
|
|
network/networksocket.c
|
|
include/networksocket.h
|
|
|
|
network/broadcastsocket.c
|
|
include/broadcastsocket.h
|
|
|
|
network/multicastsocket.c
|
|
include/multicastsocket.h
|
|
|
|
utils/ubus.c
|
|
include/ubus.h
|
|
|
|
include/utils.h
|
|
|
|
utils/runopts.c
|
|
include/runopts.h
|
|
|
|
utils/dawn_uci.c
|
|
include/dawn_uci.h
|
|
|
|
crypto/crypto.c
|
|
include/crypto.h
|
|
|
|
crypto/base64.c
|
|
include/base64.h
|
|
|
|
utils/utils.c include/dawn_iwinfo.h utils/dawn_iwinfo.c)
|
|
|
|
SET(LIBS
|
|
ubox ubus json-c blobmsg_json config uci gcrypt iwinfo)
|
|
|
|
ADD_EXECUTABLE(dawn ${SOURCES} utils/dawn_uci.c include/dawn_uci.h)
|
|
|
|
TARGET_LINK_LIBRARIES(dawn ${LIBS})
|
|
|
|
INSTALL(TARGETS dawn
|
|
RUNTIME DESTINATION /usr/bin/
|
|
) |