Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So I am playing around with creating a
Cython
language to try and simplify the way to make Cython files. The basic files that need to be created are documented here and I am looking at other implementedFortran
,CSharp
, etc. languages for reference.The end-goal is to make the
CMakeLists.txt
as:Approach 1:
set(CMAKE_Cython_OUTPUT_EXTENSION ".c")
The hope here is that we could define only the bare minimum to create the necessary
.c
files and have the C compiler part take over from there. Unfortunately CMake does not seem to chain the parts accordingly.Maybe if we can manipulate the dependencies in
.dep
this approach would work.Approach 2: chain
CMAKE_Cython_COMPILE_OBJECT
withCMAKE_C_COMPILE_OBJECT
This should probably work with the current implementation, and at first glance it seems to do what it needs to do, but the link-library part doesn't seem to be configured correctly yet