uloop: ignore SIGPIPE by default
[project/libubox.git] / examples / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 PROJECT(ubox-examples C)
4 ADD_DEFINITIONS(-O1 -Wall -Werror --std=gnu99 -g3)
5
6 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
7 LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
8
9 FIND_LIBRARY(json NAMES json-c json)
10
11 ADD_EXECUTABLE(blobmsg-example blobmsg-example.c)
12 TARGET_LINK_LIBRARIES(blobmsg-example ubox blobmsg_json  ${json})
13
14 ADD_EXECUTABLE(ustream-example ustream-example.c)
15 TARGET_LINK_LIBRARIES(ustream-example ubox)
16
17 ADD_EXECUTABLE(runqueue-example runqueue-example.c)
18 TARGET_LINK_LIBRARIES(runqueue-example ubox)
19
20 ADD_EXECUTABLE(json_script-example json_script-example.c)
21 TARGET_LINK_LIBRARIES(json_script-example ubox blobmsg_json json_script ${json})