2013-05-18 19:39:36 +02:00
|
|
|
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})
|
2013-05-20 03:45:06 +02:00
|
|
|
install(
|
|
|
|
TARGETS owlps-udp-to-http
|
|
|
|
DESTINATION bin)
|
2013-05-18 19:39:36 +02:00
|
|
|
|
2013-05-19 17:21:24 +02:00
|
|
|
add_executable(owlps-udp-to-http.semistatic EXCLUDE_FROM_ALL
|
|
|
|
owlps-udp-to-http.c)
|
2013-05-18 19:39:36 +02:00
|
|
|
target_link_libraries(owlps-udp-to-http.semistatic
|
|
|
|
libowlps.a
|
|
|
|
libowlps-resultreader.a
|
|
|
|
${EXTRA_LIBS})
|
2013-05-19 20:32:57 +02:00
|
|
|
# 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)
|
2013-05-20 18:22:45 +02:00
|
|
|
|
|
|
|
# Add compile flags for the above targets
|
|
|
|
set_target_properties(
|
|
|
|
owlps-udp-to-http
|
|
|
|
owlps-udp-to-http.semistatic
|
|
|
|
owlps-udp-to-http.static
|
|
|
|
PROPERTIES COMPILE_FLAGS ${EXE_FLAGS})
|