--good
This commit is contained in:
@@ -24,23 +24,6 @@
|
||||
|
||||
|
||||
|
||||
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
message(STATUS "Maximum optimization for speed")
|
||||
add_definitions(-DRELEASE_BUILD)
|
||||
add_definitions(-DWATCHDOG_IWDG)
|
||||
add_compile_options(-Ofast)
|
||||
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
|
||||
add_definitions(-DWATCHDOG_IWDG)
|
||||
message(STATUS "Maximum optimization for speed, debug info included")
|
||||
add_compile_options(-Ofast -g)
|
||||
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
|
||||
message(STATUS "Maximum optimization for size")
|
||||
add_compile_options(-Os)
|
||||
else ()
|
||||
message(STATUS "Minimal optimization, debug info included")
|
||||
add_compile_options(-Og -g)
|
||||
endif ()
|
||||
|
||||
file(GLOB_RECURSE SOURCES "Core/*.*" "App/*.*" "loader/*.*" "../ARMCM0_STM32G0/*.*")
|
||||
list(FILTER SOURCES EXCLUDE REGEX "IAR\\/.*.[c|h]$")
|
||||
list(FILTER SOURCES EXCLUDE REGEX "Keil\\/.*.[c|h]$")
|
||||
|
||||
Reference in New Issue
Block a user