Skip to content

Instantly share code, notes, and snippets.

@JakubGrobelny
Created September 17, 2021 19:35
Show Gist options
  • Save JakubGrobelny/76e0c6deeae45aee6f0b63c3d6ea3f59 to your computer and use it in GitHub Desktop.
Save JakubGrobelny/76e0c6deeae45aee6f0b63c3d6ea3f59 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.15)
project(program_name VERSION 0.0.1)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic --std=c++17 -Og -fsanitize=address,undefined")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -Wextra -pedantic --std=c++17 -Werror -O2")
file(GLOB_RECURSE SOURCES src/*.hpp src/*.cpp)
include_directories(${CMAKE_SOURCE_DIR})
add_executable(program_name ${SOURCES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment