Skip to content
Snippets Groups Projects
Commit debc64fa authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

understand macro cxx_test

parent 637b3c1e
No related branches found
No related tags found
No related merge requests found
......@@ -192,8 +192,7 @@ endfunction()
# from the given source files. dir/name.cc is implicitly included in
# the source file list.
function(cxx_executable name dir libs)
cxx_executable_with_flags(
${name} "${cxx_default}" "${libs}" "${dir}/${name}.cpp" ${ARGN})
cxx_executable_with_flags(${name} "${cxx_default}" "${libs}" "${dir}/${name}.cpp" ${ARGN})
endfunction()
# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE.
......@@ -210,12 +209,11 @@ endfunction()
# cxx_test(name libs srcs...)
#
# creates a named test target that depends on the given libs and is
# built from the given source files. Unlike cxx_test_with_flags,
# test/name.cc is already implicitly included in the source file list.
# creates a named test target that depends on the given libs.
# The source file name is constructed from he given target name.
# Btw: "${ARGN} holds the list of arguments past the last expected argument."
function(cxx_test name libs)
cxx_test_with_flags("${name}" "${cxx_default}" "${libs}"
"./${name}.cpp" ${ARGN})
cxx_test_with_flags("${name}" "${cxx_default}" "${libs}" "./${name}.cpp" ${ARGN})
endfunction()
# py_test(name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment