Init project setup
This commit is contained in:
parent
a00fdfcc9e
commit
06f60186a6
4 changed files with 26 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
build*/
|
||||
compile_commands.json
|
||||
.cache/
|
2
.lvimrc
Normal file
2
.lvimrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
set tabstop=2
|
||||
set shiftwidth=2
|
18
CMakeLists.txt
Normal file
18
CMakeLists.txt
Normal file
|
@ -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})
|
3
src/main.cc
Normal file
3
src/main.cc
Normal file
|
@ -0,0 +1,3 @@
|
|||
int main(int argc, char **argv) {
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue