Skip to content

CLI tool for generating C++ sources at CMake configure stage #146

Answered by Be-ing
ahayzen-kdab asked this question in Ideas
Discussion options

You must be logged in to vote

Follow up on this for posterity: I successfully implemented this in #173, then realized it wasn't a great idea after all due to the practicalities of distributing a Rust executable, a C++ library, and a CMake module which all have to have exactly the same version. Instead, in #174 and #218 I refactored cxx-qt-build so that it not only generates C++ code, but also compiles it, links it with the Rust, and links Qt. This greatly simplified the CMake integration; we don't need our own custom CMake module anymore and instead only need a few calls to Corrosion. This also allows much easier integration with other C++ build systems. All the C++ build system has to do is call cargo build with the …

Replies: 8 comments 39 replies

Comment options

You must be logged in to vote
7 replies
@Be-ing
Comment options

@ahayzen-kdab
Comment options

@LeonMatthesKDAB
Comment options

@ahayzen-kdab
Comment options

@Be-ing
Comment options

Comment options

You must be logged in to vote
5 replies
@ahayzen-kdab
Comment options

@LeonMatthes
Comment options

@LeonMatthesKDAB
Comment options

@LeonMatthesKDAB
Comment options

@ahayzen-kdab
Comment options

Comment options

You must be logged in to vote
3 replies
@ahayzen-kdab
Comment options

@LeonMatthesKDAB
Comment options

@ahayzen-kdab
Comment options

Comment options

You must be logged in to vote
19 replies
@jason-yau
Comment options

@Be-ing
Comment options

@ahayzen-kdab
Comment options

@jason-yau
Comment options

@Be-ing
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ahayzen-kdab
Comment options

Comment options

You must be logged in to vote
4 replies
@ahayzen-kdab
Comment options

@Be-ing
Comment options

@ahayzen-kdab
Comment options

@Be-ing
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ahayzen-kdab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
❌ wontfix This will not be worked on
5 participants