aboutsummaryrefslogtreecommitdiff
path: root/etc/ccache.cmake
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-03-09 21:49:43 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-03-09 21:49:43 +0800
commit7aa2a67d8381c9a88d69a3f53d74a7f079214263 (patch)
treede149b622a960ffc42bfce1d6a37a81ea3a493a2 /etc/ccache.cmake
parent2a65ece16cd237d56c9dac8d9d3d680e9d34b774 (diff)
downloadray-tracing-7aa2a67d8381c9a88d69a3f53d74a7f079214263.tar.gz
ray-tracing-7aa2a67d8381c9a88d69a3f53d74a7f079214263.tar.xz
Establish a well-structured modern C++ project architecture
Focus on code quality: Treat strict warnings as errors, memory checks with Sanitizers, Clang formatting and static analysis Performance optimization: LTO, ccache
Diffstat (limited to 'etc/ccache.cmake')
-rw-r--r--etc/ccache.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/ccache.cmake b/etc/ccache.cmake
new file mode 100644
index 0000000..aeceb8e
--- /dev/null
+++ b/etc/ccache.cmake
@@ -0,0 +1,5 @@
+find_program(CCACHE_PROGRAM ccache)
+if(CCACHE_PROGRAM)
+ set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
+ message(STATUS "Found ccache: ${CCACHE_PROGRAM} - Compilation will be cached.")
+endif() \ No newline at end of file