## CMakeLists.txt # # @author Daniel Krebs # @copyright 2014-2019, RWTH Institute for Automation of Complex Power Systems (ACS) # @license GNU General Public License (version 3) # # VILLAScommon # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . ############################################################################## add_executable(unit-tests-common advio.cpp json_buffer.cpp graph.cpp hist.cpp kernel.cpp list.cpp task.cpp timing.cpp utils.cpp ) if(ARCH STREQUAL "x86_64") list(APPEND TEST_SRC tsc.cpp) endif() target_include_directories(unit-tests-common PUBLIC ${PROJECT_SOURCE_DIR}/include ${CRITERION_INCLUDE_DIRS} ) target_link_libraries(unit-tests-common PUBLIC villas-common ${CRITERION_LIBRARIES} ) add_custom_target(run-unit-tests-common COMMAND $ ${CRITERION_OPTS} USES_TERMINAL )