2012-10-01 14:54:54 +02:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(-I..)
|
2013-03-03 03:06:20 +01:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
2012-10-01 15:03:26 +02:00
|
|
|
|
2013-03-03 03:06:19 +01:00
|
|
|
IF (BUILD_EXAMPLES)
|
2014-06-27 18:11:45 +02:00
|
|
|
ADD_EXECUTABLE(server server.c count.c)
|
2013-03-03 03:06:19 +01:00
|
|
|
TARGET_LINK_LIBRARIES(server ubus ubox blobmsg_json)
|
2012-10-01 14:54:54 +02:00
|
|
|
|
2014-06-27 18:11:45 +02:00
|
|
|
ADD_EXECUTABLE(client client.c count.c)
|
2013-03-03 03:06:19 +01:00
|
|
|
TARGET_LINK_LIBRARIES(client ubus ubox)
|
|
|
|
ENDIF()
|