From c41f692089ec680ca9ef2436d90ec3c599aeb86d Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 14 May 2025 22:37:56 +0200 Subject: Inital commit --- CMakeLists.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..feda5cf --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,29 @@ +#- +# This file is part of Tris Game. +# +# Tris Game is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Tris Game is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Tris Game. If not, see . +# + +cmake_minimum_required(VERSION 3.10) +project(tris) + +set(OpenGL_GL_PREFERENCE GLVND) +find_package(OpenGL REQUIRED) + +add_executable(tris + src/main/main.c + src/main/ui/ui.h + src/main/ui/x11/ui.c) + +target_link_libraries(tris PRIVATE X11 GL GLX) -- cgit v1.2.3