spaceball demo is only meaningful on unix, don't build on other
authorDiederick Niehorster <dcnieho@gmail.com>
Fri, 25 May 2012 01:35:06 +0000 (01:35 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Fri, 25 May 2012 01:35:06 +0000 (01:35 +0000)
platforms

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1323 7f0cb862-5218-0410-a997-914c9d46530a

CMakeLists.txt

index dee50b1..c7d9c14 100644 (file)
@@ -397,9 +397,11 @@ ADD_DEMO(Resizer         progs/demos/Resizer/Resizer.cpp)
 ADD_DEMO(multi-touch     progs/demos/multi-touch/multi-touch.c)
 ADD_DEMO(shapes          progs/demos/shapes/shapes.c)
 ADD_DEMO(smooth_opengl3  progs/demos/smooth_opengl3/smooth_opengl3.c)
-ADD_DEMO(spaceball       progs/demos/spaceball/spaceball.c
-                         progs/demos/spaceball/vmath.c
-                         progs/demos/spaceball/vmath.h)
+IF(UNIX)
+    ADD_DEMO(spaceball       progs/demos/spaceball/spaceball.c
+                             progs/demos/spaceball/vmath.c
+                             progs/demos/spaceball/vmath.h)
+ENDIF()
 ADD_DEMO(subwin          progs/demos/subwin/subwin.c)
 ADD_DEMO(timer           progs/demos/timer/timer.c)