From 57d1599c1add00bce8824b5e52392f007ed1ed82 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 1 Oct 2012 14:54:54 +0200 Subject: [PATCH] move example to examples/ --- CMakeLists.txt | 4 +--- examples/CMakeLists.txt | 6 ++++++ ubus-example.c => examples/ubus-example.c | 0 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 examples/CMakeLists.txt rename ubus-example.c => examples/ubus-example.c (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ecce85..30f184d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,12 +22,10 @@ ADD_EXECUTABLE(cli cli.c) SET_TARGET_PROPERTIES(cli PROPERTIES OUTPUT_NAME ubus) TARGET_LINK_LIBRARIES(cli ubus ubox blobmsg_json json) -ADD_EXECUTABLE(ubus-example ubus-example.c) -TARGET_LINK_LIBRARIES(ubus-example ubus ubox) - SET(CMAKE_INSTALL_PREFIX /usr) ADD_SUBDIRECTORY(lua) +ADD_SUBDIRECTORY(examples) INSTALL(TARGETS ubus cli LIBRARY DESTINATION lib diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..59ba6ab --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 2.6) + +ADD_DEFINITIONS(-I..) +ADD_EXECUTABLE(ubus-example ubus-example.c) +TARGET_LINK_LIBRARIES(ubus-example ubus ubox) + diff --git a/ubus-example.c b/examples/ubus-example.c similarity index 100% rename from ubus-example.c rename to examples/ubus-example.c -- 2.30.2