Closed rxdu closed 5 years ago
Thanks for this change, I'm not very familiar to CMake and I was wanting this. I'm pulling your request.
One change I made from your pull request was to change the top level "ascent" folder name to "include". I hope this doesn't cause you any issues.
That's no problem. In that way, I would suggest you keep the whole repo as a single project for simplicity, instead of the current "1 top-project + 3 sub-projects". Then it's more like a "standard" structure of a CMake project. Take a look at this branch to see what I meant: https://github.com/rxdu/Ascent/tree/cmake_build
Thanks! I just updated the repository like yours, and added CMake options for building the examples or unit tests.
I know the way to configure CMake could be a personal preference matter. So feel free to reject the pull request if you don't feel it makes things better.
Thanks for sharing your work.