Add ccache support

This commit is contained in:
2023-02-22 00:17:38 +01:00
parent f3f369e044
commit eade59dea9

View File

@@ -8,6 +8,12 @@ set(CMAKE_AUTOMOC ON)
#set(CMAKE_CXX_EXTENSIONS ON)
add_compile_options(-std=c++2b)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
find_package(Qt6 6.2 REQUIRED COMPONENTS SerialPort Quick)
qt_add_executable(appscheincommander