]> git.seodisparate.com - EN605.617.81.FA21_StephenSeo_DitheringProject/commitdiff
Init project setup
authorStephen Seo <seo.disparate@gmail.com>
Thu, 11 Nov 2021 11:04:59 +0000 (20:04 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 11 Nov 2021 11:04:59 +0000 (20:04 +0900)
.gitignore [new file with mode: 0644]
.lvimrc [new file with mode: 0644]
CMakeLists.txt [new file with mode: 0644]
src/main.cc [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..eb32573
--- /dev/null
@@ -0,0 +1,3 @@
+build*/
+compile_commands.json
+.cache/
diff --git a/.lvimrc b/.lvimrc
new file mode 100644 (file)
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 (file)
index 0000000..a0317a4
--- /dev/null
@@ -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 (file)
index 0000000..5c2fa9b
--- /dev/null
@@ -0,0 +1,3 @@
+int main(int argc, char **argv) {
+  return 0;
+}