diff options
author | Aki <please@ignore.pl> | 2022-04-18 22:04:57 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-18 22:04:57 +0200 |
commit | d5c207373aa163a9300909ea0b9f4476749b91ee (patch) | |
tree | 12024290e1a23ec66fa6b6ea8b43e22696b6244e /CMakeLists.txt | |
parent | add251b4ea37b57cf926b07e5e04d9b065f82a2c (diff) | |
download | bullethell2022-d5c207373aa163a9300909ea0b9f4476749b91ee.zip bullethell2022-d5c207373aa163a9300909ea0b9f4476749b91ee.tar.gz bullethell2022-d5c207373aa163a9300909ea0b9f4476749b91ee.tar.bz2 |
Added warning reporting build flags and enabled optimization
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b3083f3..11b364e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,8 @@ project(bullethell) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_EXTENSIONS No) +set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic") +set(CMAKE_CXX_RELEASE "-O3") if(EMSCRIPTEN) set(CMAKE_PREFIX_PATH "$ENV{HOME}/.emscripten_cache/sysroot;/usr/lib/emscripten/system") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s USE_GLFW=3 -s ASSERTIONS=1 -s WASM=1 -s ASYNCIFY") |