set(PACKAGE data_converters-kml_pipe)

enable_nls()

message(STATUS ${PACKAGE})

find_package(spdlog REQUIRED)
set(SOURCE_FILES ConvertToKml.cpp ConvertToKml.hpp)
set(PIPE_NAMES iris2kml)
SET(CONF_FILES iris2kml.conf)

include_directories(${CMAKE_SOURCE_DIR}/ngpipes)

link_libraries(boost_regex boost_system boost_filesystem boost_program_options boost_date_time tirpc exthdr-iris antenna-iris himath-iris dspi-iris user-iris misc-iris config-iris siglog spdlog::spdlog)

add_executable(iris2kml iris2kml.cpp ${SOURCE_FILES})

install(TARGETS ${PIPE_NAMES} DESTINATION ${IRIS_PIPES} COMPONENT kml)
install(FILES ${CONF_FILES} DESTINATION ${IRIS_CONFIG_TMPL} COMPONENT kml)