Add build types

This commit is contained in:
Alex 2020-07-06 16:29:38 +02:00
parent a91ad0140c
commit f0754db439
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.16)
project(microirc LANGUAGES C)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic")
set(CMAKE_BUILD_TYPE Debug)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/archive)