-
Notifications
You must be signed in to change notification settings - Fork 346
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
Document how to add new custom supplements for third-party developers #3127
Comments
Agree it needs to be documented. It seems like the above could be called cmake/CMakeLists-Supp-Template.txt and a reference made to it in the AdvancedTemplate. I wonder if we should stick a statement at the end of all the supplement README files to say something like "To explore adding a new supplement by taking advantage of the GMT build system, see CMakeLists-Supp-Template.txt and the discussion in the Advanced Template for custom supplements". |
Looks good to me. Is it required to run the script |
Ah, well there is a need for more documentation on that front. In fact, I think we had that script in the tools folder until recently? |
I don't like it so much the idea of a .sh script to create the *.ch codes needed to make the new supp functions found-able. I have always did that manually. Basically, they need to follow the |
We need to make this simpler. Again I will play with this after work. |
Question. My gsfml CmakeLists.txt did a bit of configuration. I have a few *.in files. Can these be handled at all? One is a C include file and one is a shell script include file... |
E.g., I could let my Cmakelist file set
and ideally leave the rest as is? |
Sorry, answering myself. I would add configure_file (gsfml_config.h.in gsfml_config.h) Oh, and I need to add some shell scripts to be installed as well. gsfml is a mix of scripts and C codes... How to handle that? |
Yikes, there is more. I have a data file with magnetic reversal times from various references. These values do sometimes change and new reference models are published. I have a GNUmakefile to turns this table into a bunch of C include files. I think I will do that outside of the GMT configuration. Not worth the trouble. |
Got it to work just fine. here is trailing output from gmt --help:
|
For any developers who want to develop custom supplements, they need to have a src subdirectory, some C codes, and most importantly, a CMakeLists.txt file.
Here is a full list of all CMake settings that can be included in the CMakeLists.txt:
We need to document it somewhere. Maybe in the cmake/ConfigUserAdvanced.cmake or a standalone file listed in the the "Developer Resources" of the GMT documentation.
The text was updated successfully, but these errors were encountered: