preda / gpuowl

GPU Mersenne primality test.
GNU General Public License v3.0
178 stars 40 forks source link

Fix cmake build #293

Closed proski closed 2 months ago

proski commented 2 months ago

I don't know if there is any interest in supporting cmake. I would prefer to have a single build system, and I would prefer to use cmake over having a plain Makefile (it's also possible to have a simple top-level Makefile that would call cmake). This PR fixes the obvious breakage. More improvements might be needed if cmake is chosen as the only way to build prpll.

preda commented 2 months ago

Help with the cmake build is greatly appreciated, thanks!

I do use cmake myself as the build system used by the IDE, qtcreator. So in a way I'm bound to keep using cmake. I was having difficulty with these two pain points in cmake: obtaining the version from git, and generating the bundle.cpp, which you seem to have addressed.