source: trunk/debian/packages/libubox/trunk/examples/CMakeLists.txt @ 857

Last change on this file since 857 was 857, checked in by amain, 4 years ago

libubox: initial import / part 4

File size: 783 bytes
Line 
1cmake_minimum_required(VERSION 2.6)
2
3IF (BUILD_EXAMPLES)
4    PROJECT(ubox-examples C)
5    ADD_DEFINITIONS(-O1 -Wall -Werror --std=gnu99 -g3)
6
7    INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
8    LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
9
10    FIND_LIBRARY(json NAMES json-c json)
11
12    ADD_EXECUTABLE(blobmsg-example blobmsg-example.c)
13    TARGET_LINK_LIBRARIES(blobmsg-example ubox blobmsg_json  ${json})
14
15    ADD_EXECUTABLE(ustream-example ustream-example.c)
16    TARGET_LINK_LIBRARIES(ustream-example ubox)
17
18    ADD_EXECUTABLE(runqueue-example runqueue-example.c)
19    TARGET_LINK_LIBRARIES(runqueue-example ubox)
20
21    ADD_EXECUTABLE(json_script-example json_script-example.c)
22    TARGET_LINK_LIBRARIES(json_script-example ubox blobmsg_json json_script ${json})
23ENDIF()
Note: See TracBrowser for help on using the repository browser.