25 lines
666 B
CMake
25 lines
666 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/real-device-examples-test-suite.cc
|
||
|
|
)
|
||
|
|
endif()
|
||
|
|
|
||
|
|
build_lib(
|
||
|
|
LIBNAME real-device
|
||
|
|
SOURCE_FILES model/evb-lan9668.cc
|
||
|
|
helper/real-device-helper.cc
|
||
|
|
HEADER_FILES model/evb-lan9668.h
|
||
|
|
helper/real-device-helper.h
|
||
|
|
LIBRARIES_TO_LINK ${libcore}
|
||
|
|
${libethernet}
|
||
|
|
${libtsn}
|
||
|
|
TEST_SOURCES test/real-device-test-suite.cc
|
||
|
|
${examples_as_tests_sources}
|
||
|
|
)
|