use -Os
[project/uhttpd.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 PROJECT(uhttpd C)
4 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
5
6 IF(APPLE)
7   INCLUDE_DIRECTORIES(/opt/local/include)
8   LINK_DIRECTORIES(/opt/local/lib)
9 ENDIF()
10
11 ADD_EXECUTABLE(uhttpd main.c listen.c client.c utils.c file.c auth.c)
12 TARGET_LINK_LIBRARIES(uhttpd ubox ubus)