Commit 53ea7b22 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

cmake: make unit-tests optional

parent 21340e7b
Pipeline #294955 failed with stages
in 33 seconds
......@@ -57,13 +57,17 @@ pkg_check_modules(JANSSON REQUIRED IMPORTED_TARGET jansson)
pkg_check_modules(XIL REQUIRED IMPORTED_TARGET libxil)
find_package(Threads)
find_package(Criterion)
include_directories(thirdparty/CLI11)
include_directories(thirdparty/rang)
add_subdirectory(lib)
add_subdirectory(src)
add_subdirectory(tests)
if(CRITERION_FOUND AND TOPLEVEL_PROJECT)
add_subdirectory(tests)
endif()
if(NOT CMAKE_PROJECT_NAME STREQUAL "villas-node")
add_subdirectory(common)
......
......@@ -42,8 +42,6 @@ if (CMAKE_CUDA_COMPILER)
gpu.cpp rtds2gpu.cpp gpu_kernels.cu)
endif ()
find_package(Criterion REQUIRED)
target_include_directories(unit-tests-fpga PUBLIC
../include
${CRITERION_INCLUDE_DIRECTORIES}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment