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 integration #305

Open
mikebentley15 opened this issue Dec 12, 2019 · 0 comments
Open

CMake integration #305

mikebentley15 opened this issue Dec 12, 2019 · 0 comments
Labels
documentation Involves touching documentation enhancement make Involves touching GNU Makefiles python Involves touching python code tests Involves touching tests

Comments

@mikebentley15
Copy link
Collaborator

Feature Request

Describe the new feature:
Right now, FLiT only has GNU Make integration and experimental Ninja Build integration.

What about projects using CMake? As it is now, we could have the flit-config.toml and custom.mk be input files that CMake can populate (i.e., flit-config.toml.in and custom.mk.in). It would also be nice to have a way of generating a CMakeLists.txt file for doing the whole FLiT stuff. It is unknown how much work that would be.

First Approach:
Generate a CMakeLists.txt file instead of a Makefile that would be able to generate all FLiT builds. Likewise for Bisect.

This approach would likely take a lot of work.

Alternative approaches:
Create a CMake infrastructure to make it easy to generate flit-config.toml and custom.mk files from CMake - perhaps even without the .in files. You could perhaps specify everything needed into one or more CMake function calls and it would cause the FLiT test directory to be generated, and a target to be added to CMake (like make flit).

This seems much more attainable. It would require a CMake file to be installed, and when found with find_package(flit), would define needed variables and functions.

I think this is easier to swallow for us implementers, and also for users.

@mikebentley15 mikebentley15 added documentation Involves touching documentation enhancement make Involves touching GNU Makefiles python Involves touching python code tests Involves touching tests labels Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Involves touching documentation enhancement make Involves touching GNU Makefiles python Involves touching python code tests Involves touching tests
Projects
None yet
Development

No branches or pull requests

1 participant