-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FetchContent example #3
base: master
Are you sure you want to change the base?
Conversation
|
The |
Ah OK sorry, then it makes a lot of sense. |
Can we avoid the configuration of the source file and rather pass the information as command line argument to the binary? This is not a merge blocker though. This is personal taste. Motivation is that |
I second Radovan's suggestion about passing executable as argument. |
Also gives more flexibility to try out stuff without reconfiguring/rebuilding. |
So if I have a sample input file in
I would run as something like this?
I guess the template file should also be shipped along with the executables when building and installing? If so, where to? |
What is the difference between
Yes, I think so. Where to I am not sure yet. Either a subdirectory or perhaps "datadir" of https://www.gnu.org/prep/standards/html_node/Directory-Variables.html |
If we anyway pass the executable and template as arguments it would be easier to drop the python script and just use the |
To me this suggestion sounds good. @robertodr do we see this correctly? |
So it will be:
right? I like it, for this simple example. For more complicated programs (like MRChem), the front-end script would do more than just the parsing, but that's beyond the scope of this tutorial repo. |
@bast can you have a look at the Any suggestion for fixing the template path in this file? |
It's might be better to run |
I'll have a look and report back ... |
In the latest commit I moved the |
Now looking at it ... |
Running the parselglossy step in the test script is more explicit but the question is whether the tests are supposed to mirror tests in production codes which will probably abstract the parselglossy step and hide it inside the launcher. So the question is how visible you want it to be. So the question is for me:
The |
If we parse in the |
Now passing |
d0972a1
to
7738c75
Compare
Copied the pi example from
externalproject
tofetchcontent
.This version does not treat the current project as an external, as is done in the
externalproject
, not sure if this is wanted or not.