CMakeLists.txt: Build firmware as Debug by default

pull/102/head
Olivier Martin 2019-05-20 15:14:45 +02:00 committed by Olivier Martin
parent c2a07a9139
commit d4e0c22792
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ option(GATTLIB_SHARED_LIB "Build GattLib as a shared library" YES)
find_package(PkgConfig REQUIRED)
# Define 'Debug' as the default build type
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
endif()
# Show all the warnings
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
# Expose 'gattlib.h' to all sub-directories