CMake: add installation targets

This commit is contained in:
Matteo Cypriani 2013-05-19 21:45:06 -04:00 committed by Matteo Cypriani
parent 9908ecf905
commit c41f6d9547
9 changed files with 41 additions and 1 deletions

View File

@ -56,7 +56,11 @@ Work to do in OwlPS
- Add option dump-configuration (displays the config & exits). - Add option dump-configuration (displays the config & exits).
- CMake: - 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 - Support string-based positioning requests

View File

@ -9,3 +9,9 @@ set_target_properties(
) )
target_link_libraries(libowlps-client.so libowlps.so) target_link_libraries(libowlps-client.so libowlps.so)
target_link_libraries(libowlps-client.a libowlps.a) 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)

View File

@ -9,11 +9,20 @@ set_target_properties(
) )
target_link_libraries(libowlps-resultreader.so libowlps.so) target_link_libraries(libowlps-resultreader.so libowlps.so)
target_link_libraries(libowlps-resultreader.a libowlps.a) 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) add_executable(owlps-resultreader-udp owlps-resultreader-udp.c)
target_link_libraries(owlps-resultreader-udp target_link_libraries(owlps-resultreader-udp
libowlps.so libowlps.so
libowlps-resultreader.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 add_executable(owlps-resultreader-udp.semistatic EXCLUDE_FROM_ALL
owlps-resultreader-udp.c) owlps-resultreader-udp.c)

View File

@ -7,3 +7,9 @@ set_target_properties(
SOVERSION 3 SOVERSION 3
VERSION 3.1 VERSION 3.1
) )
install(
TARGETS libowlps.so libowlps.a
DESTINATION lib)
install(
FILES owlps.h
DESTINATION include)

View File

@ -4,6 +4,9 @@ add_executable(owlps-aggregatord owlps-aggregatord.c)
target_link_libraries(owlps-aggregatord target_link_libraries(owlps-aggregatord
libowlps.so libowlps.so
${EXTRA_LIBS}) ${EXTRA_LIBS})
install(
TARGETS owlps-aggregatord
DESTINATION bin)
add_executable(owlps-aggregatord.semistatic EXCLUDE_FROM_ALL add_executable(owlps-aggregatord.semistatic EXCLUDE_FROM_ALL
owlps-aggregatord.c) owlps-aggregatord.c)

View File

@ -19,6 +19,9 @@ if (OWLPS_CLIENT_RECEIVES_POSITION)
target_link_libraries(owlps-client target_link_libraries(owlps-client
libowlps-resultreader.so) libowlps-resultreader.so)
endif() endif()
install(
TARGETS owlps-client
DESTINATION bin)
add_executable(owlps-client.semistatic EXCLUDE_FROM_ALL add_executable(owlps-client.semistatic EXCLUDE_FROM_ALL
owlps-client.c) owlps-client.c)

View File

@ -37,6 +37,9 @@ target_link_libraries(owlps-listenerd
libowlps.so libowlps.so
libowlps-client.so libowlps-client.so
${EXTRA_LIBS}) ${EXTRA_LIBS})
install(
TARGETS owlps-listenerd
DESTINATION bin)
add_executable(owlps-listenerd.semistatic EXCLUDE_FROM_ALL add_executable(owlps-listenerd.semistatic EXCLUDE_FROM_ALL
owlps-listenerd.c) owlps-listenerd.c)

View File

@ -67,6 +67,9 @@ add_executable(owlps-positionerd
target_link_libraries(owlps-positionerd target_link_libraries(owlps-positionerd
libowlps.so libowlps.so
${EXTRA_LIBS}) ${EXTRA_LIBS})
install(
TARGETS owlps-positionerd
DESTINATION bin)
add_executable(owlps-positionerd.semistatic EXCLUDE_FROM_ALL add_executable(owlps-positionerd.semistatic EXCLUDE_FROM_ALL
${OWLPS_POSITIONER_SRC_FILES}) ${OWLPS_POSITIONER_SRC_FILES})

View File

@ -5,6 +5,9 @@ target_link_libraries(owlps-udp-to-http
libowlps.so libowlps.so
libowlps-resultreader.so libowlps-resultreader.so
${EXTRA_LIBS}) ${EXTRA_LIBS})
install(
TARGETS owlps-udp-to-http
DESTINATION bin)
add_executable(owlps-udp-to-http.semistatic EXCLUDE_FROM_ALL add_executable(owlps-udp-to-http.semistatic EXCLUDE_FROM_ALL
owlps-udp-to-http.c) owlps-udp-to-http.c)