owlps/owlps-listener/CMakeLists.txt

47 lines
999 B
CMake
Raw Normal View History

2013-05-18 20:28:41 +02:00
### Options ###
option(OWLPS_LISTENER_USES_CONFIG_FILE
"Enable support for configuration files"
on)
option(OWLPS_LISTENER_USES_PTHREAD
"Enable support for POSIX threads (mandatory for the autocalibration)"
on)
option(OWLPS_LISTENER_KEEPS_MONITOR
"Enable -K (keep monitor mode on); requires POSIX threads support"
off)
configure_file(
owlps-listener-config.h.in
"${GENERATED_INCLUDE}/owlps-listener-config.h")
### Linked libraries ###
2013-05-18 19:39:36 +02:00
set(EXTRA_LIBS ${EXTRA_LIBS} pcap)
2013-05-18 20:28:41 +02:00
if (OWLPS_LISTENER_USES_CONFIG_FILE)
set(EXTRA_LIBS ${EXTRA_LIBS} confuse)
endif()
if (OWLPS_LISTENER_USES_PTHREAD)
set(EXTRA_LIBS ${EXTRA_LIBS} pthread)
endif()
### Targets ###
2013-05-18 19:39:36 +02:00
add_executable(owlps-listenerd owlps-listenerd.c)
target_link_libraries(owlps-listenerd
libowlps.so
libowlps-client.so
${EXTRA_LIBS})
add_executable(owlps-listenerd.semistatic EXCLUDE_FROM_ALL
owlps-listenerd.c)
2013-05-18 19:39:36 +02:00
target_link_libraries(owlps-listenerd.semistatic
libowlps.a
libowlps-client.a
${EXTRA_LIBS})