owlps/owlps-udp-to-http/CMakeLists.txt

33 lines
1.1 KiB
CMake

set(EXTRA_LIBS ${EXTRA_LIBS} pthread)
add_executable(owlps-udp-to-http owlps-udp-to-http.c)
target_link_libraries(owlps-udp-to-http
libowlps.so
libowlps-resultreader.so
${EXTRA_LIBS})
install(
TARGETS owlps-udp-to-http
DESTINATION bin)
add_executable(owlps-udp-to-http.semistatic EXCLUDE_FROM_ALL
owlps-udp-to-http.c)
target_link_libraries(owlps-udp-to-http.semistatic
libowlps.a
libowlps-resultreader.a
${EXTRA_LIBS})
# Add the semistatic target to the global list of semistatic targets
list(APPEND OWLPS_SEMISTATIC_TARGETS owlps-udp-to-http.semistatic)
set(OWLPS_SEMISTATIC_TARGETS ${OWLPS_SEMISTATIC_TARGETS} PARENT_SCOPE)
add_executable(owlps-udp-to-http.static EXCLUDE_FROM_ALL
owlps-udp-to-http.c)
set_target_properties(owlps-udp-to-http.static
PROPERTIES LINK_FLAGS -static)
target_link_libraries(owlps-udp-to-http.static
libowlps.a
libowlps-resultreader.a
${EXTRA_LIBS})
# Add the static target to the global list of static targets
list(APPEND OWLPS_STATIC_TARGETS owlps-udp-to-http.static)
set(OWLPS_STATIC_TARGETS ${OWLPS_STATIC_TARGETS} PARENT_SCOPE)