Browse Source

* use pkg-config

master
Alex 'AdUser' Z 2 years ago
parent
commit
6f23fc3e38
  1. 8
      CMakeLists.txt
  2. 2
      debian/control

8
CMakeLists.txt

@ -6,6 +6,8 @@ cmake_minimum_required(VERSION 2.6)
include(CTest) include(CTest)
find_package(PkgConfig REQUIRED)
option(WITH_CLIENT "Simple client for configuring daemon" ON) option(WITH_CLIENT "Simple client for configuring daemon" ON)
option(WITH_CSOCKET "Unix control socket support for daemon" ON) option(WITH_CSOCKET "Unix control socket support for daemon" ON)
option(WITH_HARDENING "Enable hardening options" ON) option(WITH_HARDENING "Enable hardening options" ON)
@ -38,6 +40,12 @@ if (WITH_HARDENING)
add_definitions("-D_FORTIFY_SOURCE=2") add_definitions("-D_FORTIFY_SOURCE=2")
endif () endif ()
pkg_check_modules(IPSET "libipset")
pkg_check_modules(REDIS "hiredis")
pkg_check_modules(PCRE "libpcre")
pkg_check_modules(READLINE "readline" REQUIRED)
message(STATUS "----------------------------------------")
message(STATUS "Compiler : ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION})") message(STATUS "Compiler : ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION})")
message(STATUS "- CFLAGS : ${CMAKE_C_FLAGS}") message(STATUS "- CFLAGS : ${CMAKE_C_FLAGS}")
message(STATUS "Paths:") message(STATUS "Paths:")

2
debian/control vendored

@ -2,7 +2,7 @@ Source: f2b
Section: net Section: net
Priority: optional Priority: optional
Maintainer: Alex 'AdUser' Z <ad_user@runbox.com> Maintainer: Alex 'AdUser' Z <ad_user@runbox.com>
Build-Depends: debhelper (>= 9), cmake, libpcre3-dev, libhiredis-dev, libipset-dev, libreadline-dev Build-Depends: debhelper (>= 9), cmake, libpcre3-dev, libhiredis-dev, libipset-dev, libreadline-dev, pkg-config
Standards-Version: 3.9.5 Standards-Version: 3.9.5
Homepage: https://github.com/AdUser/f2b Homepage: https://github.com/AdUser/f2b
Vcs-Git: https://github.com/AdUser/f2b.git Vcs-Git: https://github.com/AdUser/f2b.git

Loading…
Cancel
Save