aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore6
-rw-r--r--CMakeLists.txt6
-rw-r--r--makefile11
3 files changed, 11 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index ae07e71..1456bad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,6 @@
+CMakeCache.txt
+CMakeFiles/
+Makefile
+cmake_install.cmake
+scanline-render
*.ppm
-render
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..5786cbb
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,6 @@
+cmake_minimum_required(VERSION 3.13)
+project(scanline-render)
+
+set( CMAKE_CXX_STANDARD 17 )
+
+add_executable( ${PROJECT_NAME} main.cpp )
diff --git a/makefile b/makefile
deleted file mode 100644
index 0a4fca9..0000000
--- a/makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-render: main.cpp
- g++ -o render main.cpp
-image.ppm: render
- ./render
-run: render
- ./render
-view: image.ppm
- feh -. image.ppm
-clean:
- rm image.ppm
- rm render