On my system I do have a shared boost and linking it statically fails for some unknown reason. Currently I change those lines in CMakeLists.txt and the *_test.cpp by hand.
But shouldn't it be possible to provide a variable that can be set by the student and then create appropriate *_test.cpp?
As far as I can remember, cmake is able to pre-process any kind of file.
On my system I do have a shared boost and linking it statically fails for some unknown reason. Currently I change those lines in CMakeLists.txt and the *_test.cpp by hand.
But shouldn't it be possible to provide a variable that can be set by the student and then create appropriate *_test.cpp?
As far as I can remember, cmake is able to pre-process any kind of file.