From 37ee49ddeddfb7b7875b52be1f282b513b8774d3 Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Sun, 9 Nov 2008 15:57:44 +0100 Subject: Opengl hooks first pass. --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 210f604..db504f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ # -DCMAKE_DOC_PATH=/other/bla/doc/tuxanci-version/ # install path for doc # -DCMAKE_LOCALE_PATH=/other/bla # install path for locale # -DCMAKE_FONT=/bla/font.ttf # install path for locale +# -DNO_OPENGL=1 # disable opengl ############################################################################### # IMPORTANT DEFINITIONS [PREFIX,...] ############################################################################### @@ -128,10 +129,12 @@ ENDIF ( Apple ) MESSAGE ( STATUS "" ) MESSAGE ( STATUS "<******************************>" ) FIND_PACKAGE ( ZZIP REQUIRED ) -MESSAGE ( STATUS "" ) -MESSAGE ( STATUS "<******************************>" ) -FIND_PACKAGE ( OpenGL REQUIRED ) -FIND_PACKAGE ( GLU REQUIRED ) +IF ( NOT NO_OPENGL ) + MESSAGE ( STATUS "" ) + MESSAGE ( STATUS "<******************************>" ) + FIND_PACKAGE ( OpenGL REQUIRED ) + FIND_PACKAGE ( GLU REQUIRED ) +ENDIF ( NOT NO_OPENGL ) MESSAGE ( STATUS "" ) MESSAGE ( STATUS "<******************************>" ) -- cgit v1.2.3