this patch allows to include tests in cmake only when the options are turned on such as : python, grib, x11.
it might need a bit more work.
gdl-0.9.2 cmake test patch
an updated version of the patch, including more conditional tests, can be found here:
I think the test's themselfes must care about this (like they do now). Otherwise CMakeLists.txt must be always edited (and the automake builds would fail either). Thanks anyway.