2019-02-17 21:27:02 +01:00
|
|
|
## CMakeLists.txt
|
|
|
|
#
|
2023-08-31 11:17:07 +02:00
|
|
|
# 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
|
2024-02-29 21:40:05 +01:00
|
|
|
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
|
|
|
)
|
|
|
|
|
2019-06-27 01:37:56 +02:00
|
|
|
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
2024-02-29 21:40:05 +01:00
|
|
|
list(APPEND TEST_SRC tsc.cpp)
|
2019-02-17 21:27:02 +01:00
|
|
|
endif()
|
|
|
|
|
|
|
|
target_include_directories(unit-tests-common PUBLIC
|
2024-02-29 21:40:05 +01:00
|
|
|
${PROJECT_SOURCE_DIR}/common/include
|
|
|
|
${CRITERION_INCLUDE_DIRS}
|
2019-02-17 21:27:02 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(unit-tests-common PUBLIC
|
2024-02-29 21:40:05 +01:00
|
|
|
villas-common
|
|
|
|
${CRITERION_LIBRARIES}
|
2019-02-17 21:27:02 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target(run-unit-tests-common
|
2024-02-29 21:40:05 +01:00
|
|
|
COMMAND $<TARGET_FILE:unit-tests-common> ${CRITERION_OPTS}
|
|
|
|
USES_TERMINAL
|
2019-02-17 21:27:02 +01:00
|
|
|
)
|