Skip to content
Snippets Groups Projects
Commit b3791c28 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Spelling and constistent command capitalization.

[[Imported from SVN: r6743]]
parent 45743d1f
Branches
Tags
No related merge requests found
MACRO(test_dep)
macro(test_dep)
dune_common_script_dir(SCRIPT_DIR)
execute_process(COMMAND ${CMAKE_COMMAND} -D RELPATH=${CMAKE_SOURCE_DIR} -P ${SCRIPT_DIR}/FindFiles.cmake
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
......@@ -8,12 +8,12 @@ MACRO(test_dep)
string(REGEX REPLACE "([^ \t\n]+)[ \n\t]*$" "\\1" _dir ${_dir})
set_property(DIRECTORY ${_dir} PROPERTY TEST_INCLUDE_FILE ${CMAKE_BINARY_DIR}/${_dir}/BuildTests.cmake)
endforeach(_dir ${_dirs})
ENDMACRO(test_dep)
endmacro(test_dep)
MACRO(get_directory_test_target _target _dir)
macro(get_directory_test_target _target _dir)
string(REPLACE "${CMAKE_BINARY_DIR}" "" _relative_dir "${_dir}")
string(REPLACE "/" "_" ${_target} "${_relative_dir}")
ENDMACRO(get_directory_test_target _target _dir)
endmacro(get_directory_test_target _target _dir)
#
# - Create a custom target for building
......@@ -22,11 +22,11 @@ ENDMACRO(get_directory_test_target _target _dir)
# The target name will be the path of the
# current directory relative to ${CMAKE_BINARY_DIR}
# with all slashes replaced by underlines.
# E.g. for dune/ist/test the target will be dune_istl_test.
# E.g. for dune/istl/test the target will be dune_istl_test.
#
MACRO(add_directory_test_target _target)
macro(add_directory_test_target _target)
get_directory_test_target(${_target} "${CMAKE_CURRENT_BINARY_DIR}")
add_custom_target(${${_target}})
dune_common_script_dir(SCRIPT_DIR)
configure_file(${SCRIPT_DIR}/BuildTests.cmake.in BuildTests.cmake @ONLY)
ENDMACRO(add_directory_test_target)
endmacro(add_directory_test_target)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment