8727f355e2950edde324c7a2d3860679e4849ed8
[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 IF(APPLE)
7 INCLUDE_DIRECTORIES(/opt/local/include)
8 LINK_DIRECTORIES(/opt/local/lib)
9 ENDIF()
10
11 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
12 LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
13
14 ADD_EXECUTABLE(blobmsg-example blobmsg-example.c)
15 TARGET_LINK_LIBRARIES(blobmsg-example ubox blobmsg_json json)
16
17 ADD_EXECUTABLE(ustream-example ustream-example.c)
18 TARGET_LINK_LIBRARIES(ustream-example ubox)
19