[CMake] Somehow making life easier with wxWidgets ...

Jorgen Bodde jorgen.maillist at gmail.com
Tue Mar 11 09:10:37 EDT 2008


Hi Miquel,

I am not here to critisize your work, on the contrary, your work is
probably based on Jerry fath's work, which is based upon my work ;-) I
did contribute to CMake too once a long while ago ;-)

>  Current CVS/HEAD FindwxWidgets and I think the last release CMake
>  2.4.8 supports upto wxWidgets 2.9.

My humble apologies!
When you mentioned that it was prepared for wx2.8 I doubted myself and
looked again. And ofcourse I only looked at the top of the
FindwxWidgets script, mentioning 2.6 a lot. At the bottom I see you
are attempting to find up to 2.8. I will have to update my own project
so it seems because it might be using a wrong script then.

>  I believe that the best approach is something that we can convince the
>  wxWidgets developers to integrate with there distribution. In the line
>  of wx-config. Better yet would be to create a set of CMakeLists.txt

I wanted to do exactly that. Create a small executable that could
function as a wx-config.exe for wxWidgets on Windows where CMAKE could
benefit from the variables being set, and then kind of making the find
process more integrated with the wxWidgets distribution. I would
create it as rigorous as possible by scanning for the library files
needed, registry keys and what not just to reliably find the
installation.

But it seems I will have to do some homework first. My need for this
script came from the fact I believed that the findwxWidgets.cmake was
outdated, but it is not. My apologies again.

Who knows the wx guys will evantually switch to Cmake after all. They
arlready made a huge switch to Doxygen after sticking to LaTEX
documentation for ages. If you look at an example "bakefile"  for any
potential project here:
http://www.wxwidgets.org/wiki/index.php/Bakefile

Then I will take Cmake over Bakefile any day (not to say anything bad
about Bakefile ofcourse ;-)

Thanks for clarifying Miquel!
- Jorgen


More information about the CMake mailing list