1 cmake_minimum_required(VERSION 2.6)
4 ADD_DEFINITIONS(-Os -Wall -Werror -Wmissing-declarations --std=gnu99 -g3)
7 INCLUDE_DIRECTORIES(/opt/local/include)
8 LINK_DIRECTORIES(/opt/local/lib)
11 FIND_LIBRARY(LIBS crypt)
12 IF(LIBS STREQUAL "LIBS-NOTFOUND")
16 ADD_EXECUTABLE(uhttpd main.c listen.c client.c utils.c file.c auth.c cgi.c relay.c proc.c)
17 TARGET_LINK_LIBRARIES(uhttpd ubox ${LIBS})