1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/common/tests/unit/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
844 B
Text
Raw Permalink Normal View History

2019-02-17 21:27:02 +01:00
## 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
2019-02-17 21:27:02 +01:00
#
# 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
2019-02-17 21:27:02 +01:00
)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
list(APPEND TEST_SRC tsc.cpp)
2019-02-17 21:27:02 +01:00
endif()
target_include_directories(unit-tests-common PUBLIC
${PROJECT_SOURCE_DIR}/common/include
${CRITERION_INCLUDE_DIRS}
2019-02-17 21:27:02 +01:00
)
target_link_libraries(unit-tests-common PUBLIC
villas-common
${CRITERION_LIBRARIES}
2019-02-17 21:27:02 +01:00
)
add_custom_target(run-unit-tests-common
COMMAND $<TARGET_FILE:unit-tests-common> ${CRITERION_OPTS}
USES_TERMINAL
2019-02-17 21:27:02 +01:00
)