AnyarInc / Ascent

A fast and flexible C++ simulation engine and differential equation solver.
Apache License 2.0
123 stars 15 forks source link

updated cmake configurations #2

Closed rxdu closed 5 years ago

rxdu commented 5 years ago

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.

stephenberry commented 5 years ago

Thanks for this change, I'm not very familiar to CMake and I was wanting this. I'm pulling your request.

stephenberry commented 5 years ago

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.

rxdu commented 5 years ago

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

stephenberry commented 5 years ago

Thanks! I just updated the repository like yours, and added CMake options for building the examples or unit tests.