set(PACKAGE data_converters-ngpipes-csv)

enable_nls()

message(STATUS ${PACKAGE})

find_package(spdlog REQUIRED)
set(PIPE_NAME iris2csv)
set(CONF_FILES iris2csv.conf)
set(SOURCE_FILES iris2csv.cpp csv_product.cpp csv_product.hpp)

include_directories(${CMAKE_SOURCE_DIR}/ngpipes)

add_executable(${PIPE_NAME} ${SOURCE_FILES})

target_link_libraries(
    ${PIPE_NAME} 
    wrdata 
    sws-iris 
    misc-iris 
    himath-iris 
    user-iris 
    dl 
    m 
    z 
    bsd 
    dspi-iris 
    exthdr-iris 
    tirpc 
    antenna-iris 
    config-iris 
    tirpc 
    boost_regex 
    boost_system 
    boost_filesystem 
    boost_program_options 
    boost_date_time siglog 
    spdlog::spdlog)

# Iris2Csv
install(TARGETS ${PIPE_NAME} DESTINATION ${IRIS_PIPES} COMPONENT csv)
install(FILES ${CONF_FILES} DESTINATION ${IRIS_CONFIG_TMPL} COMPONENT csv)
