initial setup

This commit is contained in:
Bechir Braham
2024-02-12 18:56:20 +01:00
parent ae71e23dd2
commit 2e466c7a73
9 changed files with 96 additions and 0 deletions

6
cmake/helpers.cmake Normal file
View File

@ -0,0 +1,6 @@
function(default_build_type val)
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE ${val} CACHE STRING "Build type (default ${val})" FORCE)
endif()
endfunction()