2013-05-18 20:03:35 +02:00
|
|
|
### Options ###
|
|
|
|
|
|
|
|
option(OWLPS_CLIENT_RECEIVES_POSITION
|
|
|
|
"Enable -l (receive the computed position from the Positioner)"
|
|
|
|
off)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
owlps-client-config.h.in
|
|
|
|
"${GENERATED_INCLUDE}/owlps-client-config.h")
|
|
|
|
|
|
|
|
|
|
|
|
### Targets ###
|
2013-05-18 19:39:36 +02:00
|
|
|
|
|
|
|
add_executable(owlps-client owlps-client.c)
|
|
|
|
target_link_libraries(owlps-client
|
|
|
|
libowlps.so
|
|
|
|
libowlps-client.so)
|
2013-05-18 20:03:35 +02:00
|
|
|
if (OWLPS_CLIENT_RECEIVES_POSITION)
|
|
|
|
target_link_libraries(owlps-client
|
|
|
|
libowlps-resultreader.so)
|
|
|
|
endif()
|
2013-05-20 03:45:06 +02:00
|
|
|
install(
|
|
|
|
TARGETS owlps-client
|
|
|
|
DESTINATION bin)
|
2013-05-18 19:39:36 +02:00
|
|
|
|
2013-05-19 17:21:24 +02:00
|
|
|
add_executable(owlps-client.semistatic EXCLUDE_FROM_ALL
|
|
|
|
owlps-client.c)
|
2013-05-18 19:39:36 +02:00
|
|
|
target_link_libraries(owlps-client.semistatic
|
|
|
|
libowlps.a
|
|
|
|
libowlps-client.a)
|
2013-05-18 20:03:35 +02:00
|
|
|
if (OWLPS_CLIENT_RECEIVES_POSITION)
|
|
|
|
target_link_libraries(owlps-client.semistatic
|
|
|
|
libowlps-resultreader.a)
|
|
|
|
endif()
|
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-client.semistatic)
|
|
|
|
set(OWLPS_SEMISTATIC_TARGETS ${OWLPS_SEMISTATIC_TARGETS} PARENT_SCOPE)
|
|
|
|
|
|
|
|
add_executable(owlps-client.static EXCLUDE_FROM_ALL
|
|
|
|
owlps-client.c)
|
|
|
|
set_target_properties(owlps-client.static
|
|
|
|
PROPERTIES LINK_FLAGS -static)
|
|
|
|
target_link_libraries(owlps-client.static
|
|
|
|
libowlps.a
|
|
|
|
libowlps-client.a)
|
|
|
|
if (OWLPS_CLIENT_RECEIVES_POSITION)
|
|
|
|
target_link_libraries(owlps-client.static
|
|
|
|
libowlps-resultreader.a)
|
|
|
|
endif()
|
|
|
|
# Add the static target to the global list of static targets
|
|
|
|
list(APPEND OWLPS_STATIC_TARGETS owlps-client.static)
|
|
|
|
set(OWLPS_STATIC_TARGETS ${OWLPS_STATIC_TARGETS} PARENT_SCOPE)
|