Created
September 17, 2021 19:35
-
-
Save JakubGrobelny/76e0c6deeae45aee6f0b63c3d6ea3f59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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