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
9c254b6f
Commit
9c254b6f
authored
4 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
enable embed test by providing the run-in-dune-env as COMMAND option to test
parent
ddd52883
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!960
refactor the way python is used in dune
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/python/test/CMakeLists.txt
+4
-1
4 additions, 1 deletion
dune/python/test/CMakeLists.txt
with
4 additions
and
1 deletion
dune/python/test/CMakeLists.txt
+
4
−
1
View file @
9c254b6f
...
...
@@ -6,8 +6,11 @@ dune_python_add_test(NAME pythontests
dune_add_test
(
SOURCES test_embed1.cc
LINK_LIBRARIES
${
DUNE_LIBS
}
${
Python3_LIBRARIES
}
LABELS quick
)
COMMAND
${
CMAKE_BINARY_DIR
}
/run-in-dune-env
)
# add_executable(test_embed1 EXCLUDE_FROM_ALL test_embed1.cc)
# target_link_libraries(test_embed1 PUBLIC ${DUNE_LIBS} ${Python3_LIBRARIES})
add_executable
(
test_embed2 EXCLUDE_FROM_ALL test_embed2.cc
)
target_link_libraries
(
test_embed2 PUBLIC
${
DUNE_LIBS
}
${
Python3_LIBRARIES
}
)
# the following should apparently work but doesn't target_link_libraries(test_embed2 PRIVATE Python3::Python)
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