mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cmake: make unit-tests optional
This commit is contained in:
parent
e3cfc26673
commit
ba9d670d4b
2 changed files with 5 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue