From 0607cfda5b3449d0850861c140d36fbcc0f2ef1d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 26 Jan 2013 15:29:09 +0100 Subject: initial commit --- CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..eef3856 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 2.6) + +PROJECT(luci-rpcd C) +ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations) + +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") + +IF(APPLE) + INCLUDE_DIRECTORIES(/opt/local/include) + LINK_DIRECTORIES(/opt/local/lib) +ENDIF() + +ADD_EXECUTABLE(luci-rpcd main.c session.c file.c) +TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus) + +SET(CMAKE_INSTALL_PREFIX /usr) + +INSTALL(TARGETS luci-rpcd + RUNTIME DESTINATION sbin +) -- cgit v1.2.1