소스 검색

profile build type

opengl-renderer-broken
Martin Dørum 4 년 전
부모
커밋
43c238db24
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      CMakeLists.txt

+ 4
- 0
CMakeLists.txt 파일 보기

@@ -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…
취소
저장