CMakeLists.txt 434 B

123456789101112131415
  1. cmake_minimum_required(VERSION 3.10)
  2. PROJECT(qosify C)
  3. ADD_DEFINITIONS(-Os -Wall -Wno-unknown-warning-option -Wno-array-bounds -Wno-format-truncation -Werror --std=gnu99)
  4. SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
  5. find_library(bpf NAMES bpf)
  6. ADD_EXECUTABLE(qosify main.c loader.c map.c ubus.c interface.c dns.c)
  7. TARGET_LINK_LIBRARIES(qosify ${bpf} ubox ubus)
  8. INSTALL(TARGETS qosify
  9. RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
  10. )