12 lines
463 B
CMake
12 lines
463 B
CMake
function(vanetza_series_prepare out)
|
|||
|
|
if(VANETZA_SOURCE_DIR)
|
||
|
|
set(${out} "${VANETZA_SOURCE_DIR}" PARENT_SCOPE)
|
||
|
|
else()
|
||
|
|
get_filename_component(_root "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../../external/vanetza" ABSOLUTE)
|
||
|
|
if(NOT EXISTS "${_root}/vanetza/common/clock.hpp")
|
||
|
|
message(FATAL_ERROR "Missing vendored Vanetza source at ${_root}")
|
||
|
|
endif()
|
||
|
|
set(${out} "${_root}" PARENT_SCOPE)
|
||
|
|
endif()
|
||
|
|
endfunction()
|