- ADD_DEFINITIONS(-Wall -W)
- IF (DEBUG)
- REMOVE_DEFINITIONS(-O2)
- ADD_DEFINITIONS(-O0 -g)
- IF(WERROR)
- ADD_DEFINITIONS(-Werror)
- ENDIF(WERROR)
- ELSE (DEBUG)
- ADD_DEFINITIONS(-O2)
- REMOVE_DEFINITIONS(-O0 -g)
- ENDIF (DEBUG)
- IF (PROFILE)
- ADD_DEFINITIONS(-pg)
- ELSE (PROFILE)
- REMOVE_DEFINITIONS(-pg)
- ENDIF (PROFILE)
+ ADD_DEFINITIONS(-Wall -Wextra)
+ SET(CMAKE_CXX_FLAGS_PROFILE "-pg")
+ SET(CMAKE_C_FLAGS_PROFILE "-pg")
+ SET(CMAKE_LD_FLAGS_PROFILE "-pg")
+ IF(WERROR)
+ ADD_DEFINITIONS(-Werror)
+ ENDIF(WERROR)