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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Core Modules
dune-common
Commits
b6c3557f
Commit
b6c3557f
authored
4 months ago
by
Santiago Ospina De Los Ríos
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/targets-in-duneproject' into 'master'
Use targets in duneproject See merge request
!1460
parents
56b4aa26
5745590e
No related branches found
No related tags found
1 merge request
!1460
Use targets in duneproject
Pipeline
#75269
failed
4 months ago
Stage: .pre
Stage: test
Stage: code_quality
Stage: downstream
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/duneproject
+11
-4
11 additions, 4 deletions
bin/duneproject
with
11 additions
and
4 deletions
bin/duneproject
+
11
−
4
View file @
b6c3557f
...
...
@@ -417,11 +417,12 @@ list(APPEND CMAKE_MODULE_PATH "\${PROJECT_SOURCE_DIR}/cmake/modules"
#include the dune macros
include(DuneMacros)
# deactivate global include-directories (old versions of dune used to need the OLD policy to work)
dune_policy(SET DP_DEFAULT_INCLUDE_DIRS NEW)
# start a dune project with information from dune.module
dune_project()
dune_enable_all_packages()
add_subdirectory(src)
add_subdirectory(dune)
add_subdirectory(doc)
...
...
@@ -515,8 +516,14 @@ mkdir "$PROJECT/src"
echo
"-
$PROJECT
/src/CMakeLists.txt"
cat
>
"
$PROJECT
/src/CMakeLists.txt"
<<
M_DELIM
add_executable("
${
MODULE
}
"
${
MODULE
}
.cc)
target_link_dune_default_libraries("
${
MODULE
}
")
# create custom target
add_executable(
${
MODULE
}
${
MODULE
}
.cc)
# link target against found dune libraries (e.g. dune-common)
target_link_dune_default_libraries(
${
MODULE
}
)
# link target against other dune registered packages (e.g. TBB, METIS, etc.)
dune_target_enable_all_packages(
${
MODULE
}
)
M_DELIM
################## PROJECT.CC ##################
...
...
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