32 lines
741 B
CMake
32 lines
741 B
CMake
### 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 ###
|
|
|
|
add_executable(owlps-client owlps-client.c)
|
|
target_link_libraries(owlps-client
|
|
libowlps.so
|
|
libowlps-client.so)
|
|
if (OWLPS_CLIENT_RECEIVES_POSITION)
|
|
target_link_libraries(owlps-client
|
|
libowlps-resultreader.so)
|
|
endif()
|
|
|
|
add_executable(owlps-client.semistatic EXCLUDE_FROM_ALL
|
|
owlps-client.c)
|
|
target_link_libraries(owlps-client.semistatic
|
|
libowlps.a
|
|
libowlps-client.a)
|
|
if (OWLPS_CLIENT_RECEIVES_POSITION)
|
|
target_link_libraries(owlps-client.semistatic
|
|
libowlps-resultreader.a)
|
|
endif()
|