When compiling with sdl2 use it instead of glut for creating hidden window (as suggested by koda).
This is not tested but it should work.
foreach(dir
Bamboo
BambooPlinko
Basketball
Bath
Battlefield
Blizzard
Blox
Bubbleflow
Cake
Castle
Cave
Cheese
Cogs
Control
CrazyMission
CTF_Blizzard
EarthRise
Eyes
Hammock
HedgeFortress
Hedgelove
Hedgewars
Hogville
Hydrant
Islands
Knockball
Lonely_Island
Mushrooms
Octorama
PirateFlag
Plane
Ropes
Ruler
Sheep
ShoppaKing
Sticks
Trash
Tree
TrophyRace
)
add_subdirectory(${dir})
endforeach(dir)