2013-05-29 18:43:35 +02:00
|
|
|
# This file is part of the Owl Positioning System (OwlPS) project.
|
|
|
|
# It is subject to the copyright notice and license terms in the
|
|
|
|
# COPYRIGHT.t2t file found in the top-level directory of this
|
|
|
|
# distribution and at
|
2016-11-03 05:10:34 +01:00
|
|
|
# https://code.lm7.fr/mcy/owlps/src/master/COPYRIGHT.t2t
|
2013-05-29 18:43:35 +02:00
|
|
|
# No part of the OwlPS Project, including this file, may be copied,
|
|
|
|
# modified, propagated, or distributed except according to the terms
|
|
|
|
# contained in the COPYRIGHT.t2t file; the COPYRIGHT.t2t file must be
|
|
|
|
# distributed along with this file, either separately or by replacing
|
|
|
|
# this notice by the COPYRIGHT.t2t file's contents.
|
|
|
|
|
2013-05-20 22:17:10 +02:00
|
|
|
set(EXTRA_LIBS ${EXTRA_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
2013-05-18 19:39:36 +02:00
|
|
|
|
|
|
|
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})
|