From 531a60115fb39f1f3dd7fb45ade070e0611cd003 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 22 Oct 2022 23:21:14 +0200 Subject: precompiled headers --- main/CMakeLists.txt | 4 ++++ main/precomp.hpp | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 main/precomp.hpp (limited to 'main') diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 9780ad4c..617c78aa 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -14,3 +14,7 @@ endif() add_executable(${self} "${sources}" "${res}") set_property(TARGET ${self} PROPERTY OUTPUT_NAME "${PROJECT_NAME}") install(TARGETS ${self} RUNTIME DESTINATION bin) + +if(FLOORMAT_PRECOMPILED-HEADERS) + target_precompile_headers(${self} PRIVATE precomp.hpp) +endif() diff --git a/main/precomp.hpp b/main/precomp.hpp new file mode 100644 index 00000000..b38f46f9 --- /dev/null +++ b/main/precomp.hpp @@ -0,0 +1,3 @@ +#pragma once +#include "src/precomp.hpp" +#include "app.hpp" -- cgit v1.2.3