Not sure about cmake, but with GNU autotools you can reference m4
macros to disable/enable features of the build, but you also have
to edit the code itself to disable/enable features using #define
values (e.g. HAVE_X_WINDOWS :-).
Also a potential issue is just how entangled the processing and the GUI
handling code are.
Disclaimer: Have not spent much time viewing the code.
Anyway, very cool that it runs without X!
Chris
-------- Will Godfrey 16:14 Sun 13 Sep --------
Following an enquiry I just tested Yoshi in 'recovery' mode logged in as root
with no X server. Using /usr/local/share/bin/yoshim -A -i worked perfectly and
auto-connected my keyboard so I could prove everything was tickety-boo.
You still need the X libraries to compile Yoshi, but I don't know if it is
practical to provide a compile time option to build a purely headless version.