# CMakeLists.txt. # # Author: Steffen Vogel # SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University # SPDX-License-Identifier: 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 c37_118.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 /usr/bin/env bash -o pipefail -c \" $ 2>&1 | c++filt\" DEPENDS unit-tests USES_TERMINAL ) add_dependencies(tests unit-tests) add_dependencies(run-tests run-unit-tests)