eggplantbren / DNest3

Diffusive Nested Sampling
GNU General Public License v3.0
20 stars 6 forks source link

Adding CMake build option #5

Closed dfm closed 11 years ago

dfm commented 11 years ago

I'm enjoying CMake for build C++ libraries so I spent a few minutes setting it up for DNest. What do you think of this? I should automatically deal with users that don't have Boost installed.

eggplantbren commented 11 years ago

I would love to have a proper build process. Will check out your changes and think about merging. Thanks!

dfm commented 11 years ago

I especially want this because then we can do the same for Star-Field...

eggplantbren commented 11 years ago

Sounds good. For Star-Field I'd like to also set up some kind of script file so people can specify options inside there rather than having to recompile code in order to change a feature (which is incredibly user unfriendly).

eggplantbren commented 11 years ago

I'm merging this. I tried it and it works nicely. The current build process will also work still so I don't have to change my setup. Good stuff.

Two issues though which I will fix shortly - when compiling you need the -fPIC option or the shared library won't work. Also the appropriate dependency is libgsl0-dev in Ubuntu because you need the headers!