28 lines
840 B
CMake
28 lines
840 B
CMake
|
|
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/traffic-generator-examples-test-suite.cc
|
||
|
|
)
|
||
|
|
endif()
|
||
|
|
|
||
|
|
build_lib(
|
||
|
|
LIBNAME traffic-generator
|
||
|
|
SOURCE_FILES model/traffic-generator.cc
|
||
|
|
model/ethernet-generator.cc
|
||
|
|
model/myCustomApp.cc
|
||
|
|
helper/traffic-generator-helper.cc
|
||
|
|
HEADER_FILES model/traffic-generator.h
|
||
|
|
model/ethernet-generator.h
|
||
|
|
model/myCustomApp.h
|
||
|
|
helper/traffic-generator-helper.h
|
||
|
|
LIBRARIES_TO_LINK ${libcore}
|
||
|
|
${libethernet}
|
||
|
|
TEST_SOURCES test/traffic-generator-test-suite.cc
|
||
|
|
${examples_as_tests_sources}
|
||
|
|
)
|