Skip to content
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

cmake: Target individual Python commands #2999

Open
Lestropie opened this issue Sep 16, 2024 · 1 comment
Open

cmake: Target individual Python commands #2999

Lestropie opened this issue Sep 16, 2024 · 1 comment

Comments

@Lestropie
Copy link
Member

Currently, there is a single cmake job that populates build/bin/ with the executables for all Python commands present in the code base. However in a current context I want the ability to nominate only a subset of commands (some C++, some Python), and it would be preferable for the build/bin/ directory to be populated exclusively with only the set of commands I nominate. This would require construction of an individual target per Python command. Each of those targets should then depend on the API target, so that the API is created in the build directory only if at least one Python command is built.

@Lestropie
Copy link
Member Author

Extending this, for each command represented as a target, there are two separate underlying jobs: creation of the executable, and copying / softlinking of the source code. Those should ideally be represented as two independent tasks to be performed per command target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant