1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/tests/unit/CMakeLists.txt
Steffen Vogel 8464975447 ci: remove libsegfault usage as its gone in newer glibc versions
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2023-01-11 12:58:53 +01:00

40 lines
791 B
CMake

# CMakeLists.txt.
#
# @author Steffen Vogel <post@steffenvogel.de>
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
# @license Apache 2.0
###################################################################################
set(TEST_SRC
config_json.cpp
config.cpp
format.cpp
helpers.cpp
json.cpp
main.cpp
mapping.cpp
memory.cpp
pool.cpp
queue_signalled.cpp
queue.cpp
signal.cpp
)
add_executable(unit-tests ${TEST_SRC})
target_link_libraries(unit-tests PUBLIC
PkgConfig::CRITERION
Threads::Threads
villas
)
add_custom_target(run-unit-tests
COMMAND
/bin/bash -o pipefail -c \"
$<TARGET_FILE:unit-tests> 2>&1 | c++filt\"
DEPENDS
unit-tests
USES_TERMINAL
)
add_dependencies(tests unit-tests)
add_dependencies(run-tests run-unit-tests)