owlps/owlps-client/CMakeLists.txt

32 lines
741 B
CMake
Raw Normal View History

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-18 19:39:36 +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()