CMake: add installation targets
This commit is contained in:
parent
9908ecf905
commit
c41f6d9547
6
TODO.t2t
6
TODO.t2t
|
@ -56,7 +56,11 @@ Work to do in OwlPS
|
|||
- Add option dump-configuration (displays the config & exits).
|
||||
|
||||
- CMake:
|
||||
- installation targets
|
||||
- check dependencies to external libraries
|
||||
- handle doc/
|
||||
- generate Positioner's doc out of the source tree
|
||||
- use the installation prefix as search prefix for configuration files
|
||||
in Listener, Aggregator and Positioner
|
||||
|
||||
- Support string-based positioning requests
|
||||
|
||||
|
|
|
@ -9,3 +9,9 @@ set_target_properties(
|
|||
)
|
||||
target_link_libraries(libowlps-client.so libowlps.so)
|
||||
target_link_libraries(libowlps-client.a libowlps.a)
|
||||
install(
|
||||
TARGETS libowlps-client.so libowlps-client.a
|
||||
DESTINATION lib)
|
||||
install(
|
||||
FILES owlps-client.h
|
||||
DESTINATION include)
|
||||
|
|
|
@ -9,11 +9,20 @@ set_target_properties(
|
|||
)
|
||||
target_link_libraries(libowlps-resultreader.so libowlps.so)
|
||||
target_link_libraries(libowlps-resultreader.a libowlps.a)
|
||||
install(
|
||||
TARGETS libowlps-resultreader.so libowlps-resultreader.a
|
||||
DESTINATION lib)
|
||||
|
||||
add_executable(owlps-resultreader-udp owlps-resultreader-udp.c)
|
||||
target_link_libraries(owlps-resultreader-udp
|
||||
libowlps.so
|
||||
libowlps-resultreader.so)
|
||||
install(
|
||||
TARGETS owlps-resultreader-udp
|
||||
DESTINATION bin)
|
||||
install(
|
||||
FILES owlps-resultreader.h
|
||||
DESTINATION include)
|
||||
|
||||
add_executable(owlps-resultreader-udp.semistatic EXCLUDE_FROM_ALL
|
||||
owlps-resultreader-udp.c)
|
||||
|
|
|
@ -7,3 +7,9 @@ set_target_properties(
|
|||
SOVERSION 3
|
||||
VERSION 3.1
|
||||
)
|
||||
install(
|
||||
TARGETS libowlps.so libowlps.a
|
||||
DESTINATION lib)
|
||||
install(
|
||||
FILES owlps.h
|
||||
DESTINATION include)
|
||||
|
|
|
@ -4,6 +4,9 @@ add_executable(owlps-aggregatord owlps-aggregatord.c)
|
|||
target_link_libraries(owlps-aggregatord
|
||||
libowlps.so
|
||||
${EXTRA_LIBS})
|
||||
install(
|
||||
TARGETS owlps-aggregatord
|
||||
DESTINATION bin)
|
||||
|
||||
add_executable(owlps-aggregatord.semistatic EXCLUDE_FROM_ALL
|
||||
owlps-aggregatord.c)
|
||||
|
|
|
@ -19,6 +19,9 @@ if (OWLPS_CLIENT_RECEIVES_POSITION)
|
|||
target_link_libraries(owlps-client
|
||||
libowlps-resultreader.so)
|
||||
endif()
|
||||
install(
|
||||
TARGETS owlps-client
|
||||
DESTINATION bin)
|
||||
|
||||
add_executable(owlps-client.semistatic EXCLUDE_FROM_ALL
|
||||
owlps-client.c)
|
||||
|
|
|
@ -37,6 +37,9 @@ target_link_libraries(owlps-listenerd
|
|||
libowlps.so
|
||||
libowlps-client.so
|
||||
${EXTRA_LIBS})
|
||||
install(
|
||||
TARGETS owlps-listenerd
|
||||
DESTINATION bin)
|
||||
|
||||
add_executable(owlps-listenerd.semistatic EXCLUDE_FROM_ALL
|
||||
owlps-listenerd.c)
|
||||
|
|
|
@ -67,6 +67,9 @@ add_executable(owlps-positionerd
|
|||
target_link_libraries(owlps-positionerd
|
||||
libowlps.so
|
||||
${EXTRA_LIBS})
|
||||
install(
|
||||
TARGETS owlps-positionerd
|
||||
DESTINATION bin)
|
||||
|
||||
add_executable(owlps-positionerd.semistatic EXCLUDE_FROM_ALL
|
||||
${OWLPS_POSITIONER_SRC_FILES})
|
||||
|
|
|
@ -5,6 +5,9 @@ target_link_libraries(owlps-udp-to-http
|
|||
libowlps.so
|
||||
libowlps-resultreader.so
|
||||
${EXTRA_LIBS})
|
||||
install(
|
||||
TARGETS owlps-udp-to-http
|
||||
DESTINATION bin)
|
||||
|
||||
add_executable(owlps-udp-to-http.semistatic EXCLUDE_FROM_ALL
|
||||
owlps-udp-to-http.c)
|
||||
|
|
Loading…
Reference in New Issue