DAWN/src/CMakeLists.txt
PolynomialDivision 3fa8b63a7a Try glib
2017-08-17 15:12:57 +02:00

49 lines
No EOL
888 B
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
utils/utils.c)
SET(LIBS
ubox ubus json-c blobmsg_json config uci gcrypt glib)
ADD_EXECUTABLE(dawn ${SOURCES} utils/dawn_uci.c include/dawn_uci.h)
TARGET_LINK_LIBRARIES(dawn ${LIBS})
INSTALL(TARGETS dawn
RUNTIME DESTINATION /usr/bin/
)