rpcd: support "files" attribute in menu json files to make menu entries depend on...
[project/luci2/ui.git] / luci2 / src / io / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 PROJECT(luci2-io C)
4
5 INCLUDE(CheckFunctionExists)
6
7 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
8
9 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
10
11 IF(APPLE)
12   INCLUDE_DIRECTORIES(/opt/local/include)
13   LINK_DIRECTORIES(/opt/local/lib)
14 ENDIF()
15
16 ADD_EXECUTABLE(luci2-io main.c multipart_parser.c)
17 TARGET_LINK_LIBRARIES(luci2-io ubox ubus)
18
19 INSTALL(TARGETS luci2-io RUNTIME DESTINATION sbin)