diff options
author | Mateja <mail@matejamaric.com> | 2021-01-18 16:55:43 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-01-18 16:55:43 +0100 |
commit | 4ac7eccfe4fc2e24f65111328a08c5df477bb2a9 (patch) | |
tree | 24c9cf1363528323d02a121fe0dc03508ebc3a95 | |
parent | 4bd2894f0f4c4dcaed97c7de87fef40fa84a0079 (diff) | |
download | barycentric-render-4ac7eccfe4fc2e24f65111328a08c5df477bb2a9.tar.gz barycentric-render-4ac7eccfe4fc2e24f65111328a08c5df477bb2a9.zip |
Using CMake instead of Makefile.
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | makefile | 11 |
3 files changed, 11 insertions, 12 deletions
@@ -1,2 +1,6 @@ +CMakeCache.txt +CMakeFiles/ +Makefile +cmake_install.cmake +barycentric-render *.ppm -render diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..943dea8 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.13) +project(barycentric-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 |