Browse Source

* add source to build

master
Alex 'AdUser' Z 8 years ago
parent
commit
d426f952cb
  1. 2
      CMakeLists.txt
  2. 3
      src/sources/CMakeLists.txt

2
CMakeLists.txt

@ -23,7 +23,7 @@ include(GNUInstallDirs)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c99") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c99")
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions("-D_XOPEN_SOURCE=600") add_definitions("-D_GNU_SOURCE")
else () else ()
include_directories(AFTER SYSTEM "/usr/local/include") include_directories(AFTER SYSTEM "/usr/local/include")
link_directories("/usr/local/lib") link_directories("/usr/local/lib")

3
src/sources/CMakeLists.txt

@ -7,6 +7,9 @@ list(APPEND SOURCES "f2b_source_files")
add_library("f2b_source_portknock" MODULE "portknock.c" "../strlcpy.c") add_library("f2b_source_portknock" MODULE "portknock.c" "../strlcpy.c")
list(APPEND SOURCES "f2b_source_portknock") list(APPEND SOURCES "f2b_source_portknock")
add_library("f2b_source_mcast" MODULE "mcast.c" "../strlcpy.c")
list(APPEND SOURCES "f2b_source_mcast")
find_library(REDIS_FOUND "hiredis") find_library(REDIS_FOUND "hiredis")
if (WITH_REDIS AND REDIS_FOUND) if (WITH_REDIS AND REDIS_FOUND)
add_library("f2b_source_redis" MODULE "redis.c" "../strlcpy.c") add_library("f2b_source_redis" MODULE "redis.c" "../strlcpy.c")

Loading…
Cancel
Save