Browse Source

profile build type

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
43c238db24
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      CMakeLists.txt

+ 4
- 0
CMakeLists.txt View File

@@ -17,6 +17,10 @@ if(CMAKE_BUILD_TYPE STREQUAL Sanitize OR CMAKE_BUILD_TYPE STREQUAL "")
elseif(CMAKE_BUILD_TYPE STREQUAL Debug)
message(STATUS "Build mode: Debug")
add_compile_options(-g -Og)
elseif(CMAKE_BUILD_TYPE STREQUAL Profile)
message(STATUS "Build mode: Profile")
add_compile_options(-g -Og -pg)
add_link_options(-pg)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
message(STATUS "Build mode: Release")
add_compile_options(-O3 -flto)

Loading…
Cancel
Save