summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-22 23:21:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-22 23:21:56 +0200
commit531a60115fb39f1f3dd7fb45ade070e0611cd003 (patch)
tree148b5093bb67cc708a578813d19a74060830dce0 /main
parentc6d1c452bae2078833c364525aed6a583a289ac3 (diff)
precompiled headers
Diffstat (limited to 'main')
-rw-r--r--main/CMakeLists.txt4
-rw-r--r--main/precomp.hpp3
2 files changed, 7 insertions, 0 deletions
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"