25 lines
640 B
CMake
25 lines
640 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/trace-examples-test-suite.cc
|
|
)
|
|
endif()
|
|
|
|
build_lib(
|
|
LIBNAME trace
|
|
SOURCE_FILES model/animation-trace.cc
|
|
model/gantt-trace.cc
|
|
HEADER_FILES model/animation-trace.h
|
|
model/gantt-trace.h
|
|
LIBRARIES_TO_LINK ${libcore}
|
|
${libethernet}
|
|
${libtsn}
|
|
TEST_SOURCES test/trace-test-suite.cc
|
|
${examples_as_tests_sources}
|
|
)
|