summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-08-07 19:13:02 +0300
committerMavridis Philippe <mavridisf@gmail.com>2024-08-07 19:23:24 +0300
commit04b5a62b8d9f5ff8240f25361046f2a5d58e8262 (patch)
tree98b126454cdf68d544e138d7e8b31d5fd45b72c2 /ConfigureChecks.cmake
parent83ba00b7e569587d50383ff06a70148042ca780e (diff)
downloadtdegames-04b5a62b8d9f5ff8240f25361046f2a5d58e8262.tar.gz
tdegames-04b5a62b8d9f5ff8240f25361046f2a5d58e8262.zip
Add Kue billiards gamefeat/kue
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake14
1 files changed, 13 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 765e7393..f10fb006 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -66,6 +66,17 @@ if( WITH_ARTS )
endif( WITH_ARTS )
+# Kue needs GL
+if( BUILD_KUE )
+ check_include_file( "GL/gl.h" HAVE_GL_H )
+ check_include_file( "GL/glu.h" HAVE_GLU_H )
+ check_include_file( "GL/glx.h" HAVE_GLX_H )
+
+ if( NOT HAVE_GL_H OR NOT HAVE_GLU_H OR NOT HAVE_GLX_H)
+ tde_message_fatal("GL required for Kue, but not found on your system")
+ endif()
+endif()
+
##### Import libtdegames
##### All these games require libtdegames
@@ -100,6 +111,7 @@ if( BUILD_ATLANTIK OR
BUILD_KTRON OR
BUILD_KTUBERLING OR
BUILD_LSKAT OR
- BUILD_TWIN4 )
+ BUILD_TWIN4 OR
+ BUILD_KUE )
tde_import ( libtdegames )
endif()