-
Notifications
You must be signed in to change notification settings - Fork 31
Add native cmake support #28
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
base: main
Are you sure you want to change the base?
Conversation
- For backwards compatibility, -D will continue to be interpreted as Python expression until 4.0 - Introduced a temporary variable -d/--define-value-type to switch to the proper interpretation when set to `str` Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2a34e71 to
54cd5ca
Compare
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
5253b78 to
0a1bf9f
Compare
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
0a1bf9f to
03eba55
Compare
| # Append the name of the generated files to the fypp_files | ||
| # TODO: This might duplicate the file names when dependency is rerun | ||
| COMMAND ${CMAKE_COMMAND} -E echo ${out_file} >> ${target_fypp_files} | ||
| COMMAND ${Fypp_EXECUTABLE} -p ${define_flags} ${include_flags} ${source_path} ${out_path} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use either python -m fypp or pipx --spec /path/to/fypp/module
|
I have various design notes for improvement if someone wants to pick this up again. |
I would be interested, yes |
Cool, you can start by breaking up the PRs and ping me for review and I will share change proposals then. |
This provides helpful cmake interfaces:
Fypp_target_sourcesequivalent totarget_sources. This is the main interface that should be usedFypp_add_library=add_library+Fypp_target_sourcesFypp_add_executable=add_executable+Fypp_target_sourcesThe project is structured such that users can include fypp via
FetchContent, e.g.:Depends on #27, #29