owlps/owlps-aggregator/CMakeLists.txt

30 lines
1022 B
CMake
Raw Normal View History

2013-05-18 19:39:36 +02:00
set(EXTRA_LIBS ${EXTRA_LIBS} pthread confuse)
add_executable(owlps-aggregatord owlps-aggregatord.c)
target_link_libraries(owlps-aggregatord
libowlps.so
${EXTRA_LIBS})
2013-05-20 03:45:06 +02:00
install(
TARGETS owlps-aggregatord
DESTINATION bin)
2013-05-18 19:39:36 +02:00
add_executable(owlps-aggregatord.semistatic EXCLUDE_FROM_ALL
owlps-aggregatord.c)
2013-05-18 19:39:36 +02:00
target_link_libraries(owlps-aggregatord.semistatic
libowlps.a
${EXTRA_LIBS})
# Add the semistatic target to the global list of semistatic targets
list(APPEND OWLPS_SEMISTATIC_TARGETS owlps-aggregatord.semistatic)
set(OWLPS_SEMISTATIC_TARGETS ${OWLPS_SEMISTATIC_TARGETS} PARENT_SCOPE)
add_executable(owlps-aggregatord.static EXCLUDE_FROM_ALL
owlps-aggregatord.c)
set_target_properties(owlps-aggregatord.static
PROPERTIES LINK_FLAGS -static)
target_link_libraries(owlps-aggregatord.static
libowlps.a
${EXTRA_LIBS})
# Add the static target to the global list of static targets
list(APPEND OWLPS_STATIC_TARGETS owlps-aggregatord.static)
set(OWLPS_STATIC_TARGETS ${OWLPS_STATIC_TARGETS} PARENT_SCOPE)