rpcd/CMakeLists.txt
2013-07-04 14:56:20 +02:00

20 lines
493 B
CMake

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 exec.c session.c file.c uci.c iwinfo.c luci2.c)
TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus uci iwinfo)
SET(CMAKE_INSTALL_PREFIX /usr)
INSTALL(TARGETS luci-rpcd
RUNTIME DESTINATION sbin
)