setup: Configured CMake

This commit is contained in:
2025-08-25 10:00:51 +02:00
parent 9a22f920a3
commit 4599e0d78b
3 changed files with 12 additions and 4 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
a.out
build/*

11
CMakeLists.txt Normal file
View File

@@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.15)
project(64kDemo VERSION 0.1
DESCRIPTION "CPU SDF Renderer"
LANGUAGES CXX)
SET(CMAKE_CXX_FLAGS "-Os -s")
add_executable(one main.cpp)
target_link_libraries(one m glfw GLEW GL)

View File

@@ -1,3 +0,0 @@
#! /bin/bash
g++ main.cpp -lGL -lglfw -lGLEW