set(SOURCE_FILES
        exten_header.h
        exten_header_plugin.h
        exten_header.c)

add_library(exthdr SHARED ${SOURCE_FILES})

add_executable(plugin_test plugin_test.c)
add_executable(udp_pipe udp_pipe.c)

set_target_properties(exthdr PROPERTIES COMPILE_FLAGS
        "-DLinux -DPLUGINDIR=\"\\\"${IRIS_LIB}/exthdr/plugins\\\"\"")

target_link_libraries(plugin_test exthdr dl popt)
target_link_libraries(udp_pipe exthdr dl popt m)
