set(PACKAGE data_converters-timeshifters)

message(STATUS ${PACKAGE})

set(APP_NAMES timeshifter)

find_package(Boost 1.53
        COMPONENTS
        date_time
        program_options
        system
        filesystem
        thread
        REQUIRED)
find_package(spdlog REQUIRED)

set(SOURCE_FILES timeshifter.cpp fileconverter.cpp fileconverter.hpp)

add_executable(timeshifter ${SOURCE_FILES})

target_link_libraries(timeshifter 
    rscan-iris
    user-iris
    antenna-iris
    dsp-iris
    exthdr-iris
    config-iris
    boost_program_options
    boost_filesystem
    boost_system
    boost_date_time
    boost_thread
    tirpc
    siglog
    spdlog::spdlog)

install(
    TARGETS ${APP_NAMES}
    DESTINATION ${IRIS_BIN}
    COMPONENT timeshifters
)
