# This file is part of the Owl Positioning System (OwlPS) project. # It is subject to the copyright notice and license terms in the # COPYRIGHT.t2t file found in the top-level directory of this # distribution and at # https://code.lm7.fr/mcy/owlps/src/master/COPYRIGHT.t2t # No part of the OwlPS Project, including this file, may be copied, # modified, propagated, or distributed except according to the terms # contained in the COPYRIGHT.t2t file; the COPYRIGHT.t2t file must be # distributed along with this file, either separately or by replacing # this notice by the COPYRIGHT.t2t file's contents. include_directories(${CONFUSE_INCLUDE_DIR}) set(EXTRA_LIBS ${EXTRA_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${CONFUSE_LIBRARY}) 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) 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) # Add compile flags for the above targets set_target_properties( owlps-aggregatord owlps-aggregatord.semistatic owlps-aggregatord.static PROPERTIES COMPILE_FLAGS ${EXE_FLAGS})