DAWN/src/CMakeLists.txt
2017-12-12 12:19:38 +01:00

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/
)