• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/firewall3/CMakeLists.txt

  1 cmake_minimum_required(VERSION 2.6)
  2 
  3 PROJECT(firewall3 C)
  4 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations -Wno-format-truncation)
  5 
  6 SET(iptc_libs   ip4tc)
  7 
  8 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
  9 
 10 IF (NOT DISABLE_STATIC_EXTENSIONS)
 11   LIST(APPEND ext_libs iptext)
 12   LIST(APPEND ext_libs iptext4)
 13   IF (NOT DISABLE_IPV6)
 14     LIST(APPEND ext_libs iptext6)
 15   ENDIF()
 16 ELSE()
 17   ADD_DEFINITIONS(-DDISABLE_STATIC_EXTENSIONS)
 18 ENDIF()
 19 
 20 IF (NOT DISABLE_IPV6)
 21   LIST(APPEND iptc_libs ip6tc)
 22 ELSE()
 23   ADD_DEFINITIONS(-DDISABLE_IPV6)
 24 ENDIF()
 25 
 26 FIND_PATH(uci_include_dir uci.h)
 27 INCLUDE_DIRECTORIES(${uci_include_dir})
 28 
 29 ADD_EXECUTABLE(firewall3 main.c options.c defaults.c zones.c forwards.c rules.c redirects.c snats.c utils.c ubus.c ipsets.c includes.c iptables.c helpers.c)
 30 TARGET_LINK_LIBRARIES(firewall3 uci ubox ubus xtables m dl ${iptc_libs} ${ext_libs})
 31 
 32 SET(CMAKE_INSTALL_PREFIX /usr)
 33 
 34 INSTALL(TARGETS firewall3 RUNTIME DESTINATION sbin)

This page was automatically generated by LXR 0.3.1.  •  OpenWrt