diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2008-11-09 15:57:44 +0100 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2008-11-09 15:57:44 +0100 |
| commit | 37ee49ddeddfb7b7875b52be1f282b513b8774d3 (patch) | |
| tree | 7d7f7b7c2857d98b5889186f5a428f523709b7cf /CMakeLists.txt | |
| parent | 77459ad09cbcc1004801f527ce82caa2cbdf6451 (diff) | |
Opengl hooks first pass.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
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 "<Locating ZZIP library>" ) MESSAGE ( STATUS "<******************************>" ) FIND_PACKAGE ( ZZIP REQUIRED ) -MESSAGE ( STATUS "<Locating OpenGL stuff>" ) -MESSAGE ( STATUS "<******************************>" ) -FIND_PACKAGE ( OpenGL REQUIRED ) -FIND_PACKAGE ( GLU REQUIRED ) +IF ( NOT NO_OPENGL ) + MESSAGE ( STATUS "<Locating OpenGL stuff>" ) + MESSAGE ( STATUS "<******************************>" ) + FIND_PACKAGE ( OpenGL REQUIRED ) + FIND_PACKAGE ( GLU REQUIRED ) +ENDIF ( NOT NO_OPENGL ) MESSAGE ( STATUS "<Locating SDL stuff>" ) MESSAGE ( STATUS "<******************************>" ) |