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

Add CMake Integration #188

Merged
merged 5 commits into from
Sep 11, 2020
Merged

Add CMake Integration #188

merged 5 commits into from
Sep 11, 2020

Conversation

EmbersArc
Copy link
Contributor

@EmbersArc EmbersArc commented Aug 21, 2020

This will make it easier to use ECOS in CMake projects e.g. in the Epigraph library. The current process is not very elegant and difficult to use cross-platform.


This change is Reviewable

@coveralls
Copy link

coveralls commented Aug 21, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling 1534a67 on EmbersArc:cmake_integration into 40e26ef on embotech:develop.

@EmbersArc
Copy link
Contributor Author

I added support for installation which will be important to add a Conan package for ECOS.

Correct version number
CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Collaborator

@smerkli smerkli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this, CMake integration is always nice!

I have tried this out and it worked fine on macOS (Catalina) and Linux (Debian unstable). I've added comments for the things that'd need to change for Windows support. If you like, you can fix that, otherwise please add a comment at the top of the file saying this currently does not support builds on Windows. We could make a followup issue to add support in that case.

CMakeLists.txt Outdated Show resolved Hide resolved
@EmbersArc
Copy link
Contributor Author

Thanks for checking it on Windows as well, I completely forgot to consider the differences. I made the changes you suggested and it should work now.

@smerkli smerkli self-requested a review September 11, 2020 07:46
Copy link
Collaborator

@smerkli smerkli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've retested things on all three platforms and found no issues. Thanks again for the added functionality!

@smerkli smerkli merged commit 3d2f48b into embotech:develop Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants