I've reworked the build system a bit and you should keep in mind the
following changes:
The build system now uses standard cmake build types. In order to create
a debug build (for developers), one needs to do the following:
cmake -D CMAKE_BUILD_TYPE=Debug ..
Types available (standard CMake types):
* Debug (full debug information (-ggdb -DCF_DEBUG), -O0)
* Release (no debug information, -O2)
* RelWithDebInfo (default debug information (-g), -O2)
[^ default]
* MinSizeRel (no debug information, -O0)
Also, libraries should all be prefixed by "libcf" and be installed into
CMAKE_INSTALL_LIBDIR (aka "/usr/local/lib"), where they belong. (Note
that "/usr/local" ist replaced with CMAKE_INSTALL_PREFIX.) fo_server is
now installed in CMAKE_INSTALL_SBINDIR (aka. "/usr/local/sbin"). Also,
there's now a new variable CMAKE_INSTALL_LIBEXECDIR (which points to
"/usr/local/libexec") where the CGIs should go into - or rather into a
subdirectory "cforum". For other binaries you have to decide whether
they should go into "/usr/local/bin" or "/usr/local/sbin".
Side note: If you want to look for software and there's a cmake file
"FindXXXXXX.cmake", then you should call it via
find_package(XXXXXXX) # optional
find_package(XXXXXXX REQUIRED) # required
instead of using
include(FindXXXXXX)
Finally, I'm now currently working on a build system for modules that is
going to be very flexible. I've already discussed the outline with
Christian. and I'll push it as soon as I'm done, so that we may discuss it.
Regards,
Christian