-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
initial cmake support #36
Conversation
I've merged the PR to master. I've made a couple of changes, so you might check that the thing still works for you (all the targets compile and link on my side, though, so I shouldn't have broken anything):
As for the test suite: once I managed to build it *see above), I could also run it by launching the |
I am building on Ubuntu/GCC. The exact issue I'm getting when building tests is as follows:
|
Ok, that's the same issue I had. If you check out my master and run the thing with the (I wonder if this should be the default. It probably should on Linux, but I'm not sure how Boost is compiled on Windows. What compiler does cmake use there? Do you have a Windows box you can try this on?) |
Just a comment: If I were you, I would create a single However, I think that the argument of having too granular of a division makes it more difficult to maintain such a build system still stands. For sweeping changes, it would be much easier to edit one 0.02 € |
I have tried this method, and am running into some major issues. My build fails almost immediately with this error:
This creates a cascade of errors. I had to add this to my main CMakeLists.txt:
Any suggestions? Thanks! |
You're right, the Thanks for the heads-up. I've added the change to the repository. Let me know if it works for you. |
works perfectly now!! (I just cloned the QuantLib repo and ran stuff from there). Thanks!! |
This is an attempt to add initial CMake support to QuantLib so it can be compiled with CMake and opened with tools like CLion.
I have done the following:
CMakeLists.txt
file at each suitable locationquantlib
.CMakeLists.txt
benchmarks
file since I found no references to it in the VS.proj
files. Maybe I didn't look hard enough.As it stands, all parts of the arrangement compile and link successfully, but I cannot get the tests to work, probably due to my lack of experience with Boost.Test. Your assistance in this matter is appreciated.