A version of the Quake 2 source tree that should be easier to compile and run on modern *nixes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
627 B

cmake_minimum_required(VERSION 3.9)
project(ref_gl C)
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIRS})
add_library(ref_gl SHARED
../game_baseq2/q_shared.c
../quake2/linux/gl_fxmesa.c
../quake2/linux/glob.c
../quake2/linux/q_shlinux.c
../quake2/linux/qgl_linux.c
../quake2/linux/rw_x11.c
gl_draw.c
gl_image.c
gl_light.c
gl_mesh.c
gl_model.c
gl_rmain.c
gl_rmisc.c
gl_rsurf.c
gl_warp.c
)
target_link_libraries(ref_gl GL) # {OPENGL_LIBRARIES} doesn't seem to play well with -m32