Files
eden-sim/contrib/tsn/CMakeLists.txt

85 lines
3.5 KiB
CMake
Raw Normal View History

2025-12-01 15:56:02 +01:00
check_include_file_cxx(stdint.h HAVE_STDINT_H)
if(HAVE_STDINT_H)
add_definitions(-DHAVE_STDINT_H)
endif()
set(examples_as_tests_sources)
if(${ENABLE_EXAMPLES})
set(examples_as_tests_sources
#test/tsn-examples-test-suite.cc
)
endif()
build_lib(
LIBNAME tsn
SOURCE_FILES model/tsn-node.cc
model/tsn-net-device.cc
model/tsn-aggregated-net-device.cc
model/tsn-multidrop-channel.cc
model/transmission-gate.cc
model/tsn-multidrop-net-device.cc
model/tas.cc
model/tsn-transmission-selection-algo.cc
model/cbs.cc
model/clock.cc
model/clock-constant-drift.cc
model/clock-virtual.cc
model/clock-fix-precision.cc
model/gPTP.cc
model/gPTP-header.cc
model/gPTP-packet.cc
model/stream-identity-entry.cc
model/stream-identification-function.cc
model/stream-identification-function-null.cc
model/stream-identification-function-active-dest-mac-vlan.cc
model/frer-sequence-encode-decode-function.cc
model/frer-sequence-generation-function.cc
model/frer-sequence-recovery-function.cc
model/frer-base-recovery-function.cc
model/frer-match-recovery-function.cc
model/frer-vector-recovery-function.cc
model/frer-latent-error-detection-function.cc
model/psfp-stream-filter-instance.cc
model/psfp-flow-meter-instance.cc
helper/tsn-helper.cc
HEADER_FILES model/tsn-node.h
model/tsn-net-device.h
model/tsn-aggregated-net-device.h
model/tsn-multidrop-channel.h
model/tsn-multidrop-net-device.h
model/transmission-gate.h
model/tas.h
model/tsn-transmission-selection-algo.h
model/cbs.h
model/clock.h
model/clock-constant-drift.h
model/clock-fix-precision.h
model/clock-virtual.h
model/gPTP.h
model/gPTP-header.h
model/gPTP-packet.h
model/stream-identity-entry.h
model/stream-identification-function.h
model/stream-identification-function-null.h
model/stream-identification-function-active-dest-mac-vlan.h
model/frer-sequence-encode-decode-function.h
model/frer-sequence-generation-function.h
model/frer-sequence-recovery-function.h
model/frer-base-recovery-function.h
model/frer-match-recovery-function.h
model/frer-vector-recovery-function.h
model/frer-latent-error-detection-function.h
model/psfp-stream-filter-instance.h
model/psfp-flow-meter-instance.h
helper/tsn-helper.h
LIBRARIES_TO_LINK ${libcore}
${libethernet}
TEST_SOURCES test/tsn-test-suite.cc
test/cbs-test-suite.cc
test/tas-test-suite.cc
test/frer-test-suite.cc
test/psfp-test-suite.cc
test/tsn-multidrop-test-suite.cc
${examples_as_tests_sources}
)