set(base_examples ethernet-point2point ethernet-point2point-withPropagationDelay ethernet-point2point-withSmallFifo ethernet-switched ethernet-switched-withLatencyCallback ethernet-switched-withPcap ethernet-switched-withRxTxCallback ) foreach( example ${base_examples} ) build_lib_example( NAME ${example} SOURCE_FILES ${example}.cc LIBRARIES_TO_LINK ${libcore} ${libnetwork} ${libethernet} ${libtraffic-generator} ) endforeach()