You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
599 B
19 lines
599 B
set(CMAKE_INCLUDE_CURRENT_DIR ON) |
|
|
|
set(SOURCES "main.c" "logfile.c" "log.c" "matches.c" "ipaddr.c" "filelist.c" "filter.c" "config.c" "jail.c" "backend.c") |
|
|
|
add_executable("f2b" ${SOURCES}) |
|
target_link_libraries(f2b "dl") |
|
|
|
set(SOURCES "backend-test.c" "log.c" "backend.c" "config.c") |
|
add_executable("backend-test" ${SOURCES}) |
|
target_link_libraries("backend-test" "dl") |
|
|
|
#set(SOURCES "filter-test.c" "log.c" "filter.c") |
|
#add_executable("filter-test" ${SOURCES}) |
|
|
|
install(TARGETS f2b |
|
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") |
|
|
|
add_subdirectory("backends") |
|
add_subdirectory("filters")
|
|
|