add_executable(enyx-net-hw-config
               Application.cpp
               Application.hpp
               ArpScope.cpp
               ArpScope.hpp
               CmdLine.hpp
               CmdLine.cpp
               Color.cpp
               Color.hpp
               EthernetFlowControlScope.cpp
               EthernetFlowControlScope.hpp
               Executable.cpp
               Executable.hpp
               FilterScope.cpp
               FilterScope.hpp
               IcmpScope.cpp
               IcmpScope.hpp
               IgmpScope.cpp
               IgmpScope.hpp
               InterfaceScope.hpp
               InterfaceScope.cpp
               IpScope.cpp
               IpScope.hpp
               LinkScope.cpp
               LinkScope.hpp
               main.cpp)

target_link_libraries(enyx-net-hw-config
    PRIVATE
        enyx-cores
        enyx-cores-tools
        enyx-hw
        rt)

target_compile_definitions(enyx-net-hw-config
    PRIVATE
        "BIN_NAME=\"$<TARGET_FILE_NAME:enyx-net-hw-config>\"")

target_include_directories(
    enyx-net-hw-config
    PRIVATE
        ${PROJECT_BINARY_DIR}
)


install(TARGETS
        enyx-net-hw-config
    DESTINATION
        ${CMAKE_INSTALL_FULL_BINDIR})
