Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
debc64fa
Commit
debc64fa
authored
9 years ago
by
Wuttke, Joachim
Committed by
Wuttke, Joachim
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
understand macro cxx_test
parent
637b3c1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pub/utest/cmake/utils.cmake
+5
-7
5 additions, 7 deletions
pub/utest/cmake/utils.cmake
with
5 additions
and
7 deletions
pub/utest/cmake/utils.cmake
+
5
−
7
View file @
debc64fa
...
...
@@ -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 lis
t.
# 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 argumen
t.
"
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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment