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; +}