1 IF (BUILD_EXAMPLES) 2 PROJECT(ubox-examples C) 3 ADD_DEFINITIONS(-O1 -Wall -Werror --std=gnu99 -g3) 4 5 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..) 6 LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..) 7 8 FIND_LIBRARY(json NAMES json-c json) 9 10 ADD_EXECUTABLE(ustream-example ustream-example.c) 11 TARGET_LINK_LIBRARIES(ustream-example ubox) 12 13 ADD_EXECUTABLE(json_script-example json_script-example.c) 14 TARGET_LINK_LIBRARIES(json_script-example ubox blobmsg_json json_script ${json}) 15 ENDIF()
This page was automatically generated by LXR 0.3.1. • OpenWrt