From d6e39054e01cd956e9e476e9a10a4246e9579356 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Jun 2016 18:54:29 +0200 Subject: Refactor testing via IPC. --- test/CMakeLists.txt | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ed53ce59..794b6e4d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,29 +1,11 @@ cmake_policy(SET CMP0015 NEW) aux_source_directory(. SRC_LIST) +aux_source_directory(contracts SRC_LIST) +aux_source_directory(libsolidity SRC_LIST) get_filename_component(TESTS_DIR "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE) -macro (add_sources) - file (RELATIVE_PATH _relPath ${TESTS_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) - foreach (_src ${ARGN}) - if (_relPath) - list (APPEND SRC "${_relPath}/${_src}") - else() - list (APPEND SRC "${_src}") - endif() - endforeach() - if (_relPath) - # propagate SRCS to parent directory - set (SRC ${SRC} PARENT_SCOPE) - endif() -endmacro() - -add_subdirectory(contracts) -add_subdirectory(libsolidity) - -set(SRC_LIST ${SRC_LIST} ${SRC}) - # search for test names and create ctest tests enable_testing() foreach(file ${SRC_LIST}) -- cgit