Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
b3791c28
Commit
b3791c28
authored
12 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Spelling and constistent command capitalization.
[[Imported from SVN: r6743]]
parent
45743d1f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/DuneTestMacros.cmake
+7
-7
7 additions, 7 deletions
cmake/modules/DuneTestMacros.cmake
with
7 additions
and
7 deletions
cmake/modules/DuneTestMacros.cmake
+
7
−
7
View file @
b3791c28
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/ist
l
/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
)
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