set(PACKAGE data_converters-pipes_out)

enable_nls()

message(STATUS ${PACKAGE})

find_package(spdlog REQUIRED)

set(PIPE_NAMES IrisToNetCDF  
            TurkeyCat 
            Contour)
set(SCRIPTS post_8.12.7_wrap pre_8.12.8_wrap sig_ftp sig_lftp sig_sftp)
set(CONF_FILES IrisToNetCDF.conf  Contour.conf)

link_libraries(misc user m siglog boost_system popt antenna config popt exthdr tirpc himath dsp spdlog::spdlog)

add_executable(Contour Contour.C)
add_executable(TurkeyCat TurkeyCat.C)

add_executable(IrisToNetCDF IrisToNetCDF.C netcdfio.c)
target_link_libraries(IrisToNetCDF rscan dsp netcdf pipesup himath)

# NETCDF RPM
install(TARGETS IrisToNetCDF DESTINATION ${IRIS_PIPES} COMPONENT netcdf)
install(FILES IrisToNetCDF.conf DESTINATION ${IRIS_CONFIG_TMPL} COMPONENT netcdf)

# CONTOUR RPM
install(TARGETS Contour DESTINATION ${IRIS_PIPES} COMPONENT contour)
install(FILES Contour.conf DESTINATION ${IRIS_CONFIG_TMPL} COMPONENT contour)

# TURKEY CAT RPM
install(TARGETS TurkeyCat DESTINATION ${IRIS_PIPES} COMPONENT turkeycat)
