map: process dns patterns in the order in which they were defined
[project/qosify.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.10)
2
3 PROJECT(qosify C)
4
5 ADD_DEFINITIONS(-Os -Wall -Wno-unknown-warning-option -Wno-array-bounds -Wno-format-truncation -Werror --std=gnu99)
6
7 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
8
9 find_library(bpf NAMES bpf)
10 ADD_EXECUTABLE(qosify main.c loader.c map.c ubus.c interface.c dns.c)
11 TARGET_LINK_LIBRARIES(qosify ${bpf} ubox ubus)
12
13 INSTALL(TARGETS qosify
14 RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
15 )