chore: init project

This commit is contained in:
Michael Mandl 2024-03-18 12:12:08 +01:00
commit ebf50df679
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
11 changed files with 184 additions and 0 deletions

View file

@ -0,0 +1,8 @@
set(CMAKE_EXPORT_COMPILE_COMMANDS
ON
CACHE BOOL "Export compile commands database")
if(CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES
${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
endif()

6
cmake/sccache.cmake Normal file
View file

@ -0,0 +1,6 @@
find_program(SCCACHE_FOUND sccache)
if(SCCACHE_FOUND)
set(CMAKE_C_COMPILER_LAUNCHER sccache)
set(CMAKE_CXX_COMPILER_LAUNCHER sccache)
endif()