From 06f60186a62a0e8ac1ba07955b97ff45844de0c8 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 11 Nov 2021 20:04:59 +0900 Subject: [PATCH] Init project setup --- .gitignore | 3 +++ .lvimrc | 2 ++ CMakeLists.txt | 18 ++++++++++++++++++ src/main.cc | 3 +++ 4 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 .lvimrc create mode 100644 CMakeLists.txt create mode 100644 src/main.cc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb32573 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build*/ +compile_commands.json +.cache/ diff --git a/.lvimrc b/.lvimrc new file mode 100644 index 0000000..b32befc --- /dev/null +++ b/.lvimrc @@ -0,0 +1,2 @@ +set tabstop=2 +set shiftwidth=2 diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a0317a4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 3.18) +project(EN605.617.81.FA21_StephenSeo_DitheringProject) + +set(Project_SOURCES + ${CMAKE_CURRENT_SOURCE_DIR}/src/main.cc +) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic") +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g") +set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG") + +if(NOT DEFINED CMAKE_BUILD_TYPE OR NOT CMAKE_BUILD_TYPE) + message(WARNING "CMAKE_BUILD_TYPE not specified, setting to Debug...") + set(CMAKE_BUILD_TYPE "Debug") +endif() + +add_executable(DitheringProject + ${Project_SOURCES}) diff --git a/src/main.cc b/src/main.cc new file mode 100644 index 0000000..5c2fa9b --- /dev/null +++ b/src/main.cc @@ -0,0 +1,3 @@ +int main(int argc, char **argv) { + return 0; +}