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/common/tests/unit/CMakeLists.txt
Steffen Vogel 4b36073711 Use spaces for indention of CMake files
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 23:18:47 +01:00

39 lines
844 B
CMake

## CMakeLists.txt
#
# Author: Daniel Krebs <github@daniel-krebs.net>
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
#
# VILLAScommon
add_executable(unit-tests-common
buffer.cpp
graph.cpp
hist.cpp
kernel.cpp
list.cpp
task.cpp
timing.cpp
utils.cpp
base64.cpp
popen.cpp
)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
list(APPEND TEST_SRC tsc.cpp)
endif()
target_include_directories(unit-tests-common PUBLIC
${PROJECT_SOURCE_DIR}/common/include
${CRITERION_INCLUDE_DIRS}
)
target_link_libraries(unit-tests-common PUBLIC
villas-common
${CRITERION_LIBRARIES}
)
add_custom_target(run-unit-tests-common
COMMAND $<TARGET_FILE:unit-tests-common> ${CRITERION_OPTS}
USES_TERMINAL
)