CMake: don't compile semistatic by default

Exclude semistatic targets from the 'all' target.
This commit is contained in:
Matteo Cypriani 2013-05-19 11:21:24 -04:00 committed by Matteo Cypriani
parent aa88bcf0fd
commit 688580c7d2
5 changed files with 10 additions and 5 deletions

View File

@ -9,7 +9,8 @@ target_link_libraries(owlps-resultreader-udp
libowlps.so
libowlps-resultreader.so)
add_executable(owlps-resultreader-udp.semistatic owlps-resultreader-udp.c)
add_executable(owlps-resultreader-udp.semistatic EXCLUDE_FROM_ALL
owlps-resultreader-udp.c)
target_link_libraries(owlps-resultreader-udp.semistatic
libowlps.a
libowlps-resultreader.a)

View File

@ -5,7 +5,8 @@ target_link_libraries(owlps-aggregatord
libowlps.so
${EXTRA_LIBS})
add_executable(owlps-aggregatord.semistatic owlps-aggregatord.c)
add_executable(owlps-aggregatord.semistatic EXCLUDE_FROM_ALL
owlps-aggregatord.c)
target_link_libraries(owlps-aggregatord.semistatic
libowlps.a
${EXTRA_LIBS})

View File

@ -20,7 +20,8 @@ if (OWLPS_CLIENT_RECEIVES_POSITION)
libowlps-resultreader.so)
endif()
add_executable(owlps-client.semistatic owlps-client.c)
add_executable(owlps-client.semistatic EXCLUDE_FROM_ALL
owlps-client.c)
target_link_libraries(owlps-client.semistatic
libowlps.a
libowlps-client.a)

View File

@ -38,7 +38,8 @@ target_link_libraries(owlps-listenerd
libowlps-client.so
${EXTRA_LIBS})
add_executable(owlps-listenerd.semistatic owlps-listenerd.c)
add_executable(owlps-listenerd.semistatic EXCLUDE_FROM_ALL
owlps-listenerd.c)
target_link_libraries(owlps-listenerd.semistatic
libowlps.a
libowlps-client.a

View File

@ -6,7 +6,8 @@ target_link_libraries(owlps-udp-to-http
libowlps-resultreader.so
${EXTRA_LIBS})
add_executable(owlps-udp-to-http.semistatic owlps-udp-to-http.c)
add_executable(owlps-udp-to-http.semistatic EXCLUDE_FROM_ALL
owlps-udp-to-http.c)
target_link_libraries(owlps-udp-to-http.semistatic
libowlps.a
libowlps-resultreader.a