summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-10 10:49:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-10 11:36:01 +0200
commitaa5a3bd725861161d6b713a5145729abe6115aec (patch)
treecb0cad0ae94077c0e1f2794c85b5278e7e1bee82 /test
parent10e5f3713cabab03da741743b43a4c7d98954500 (diff)
cmake: add precompiled header now unconditionally
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 20b66a6d..e835c359 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -26,3 +26,9 @@ file(GLOB saves "save/*.dat" CONFIGURE_ARGS)
foreach(file ${saves})
configure_file("${file}" "${save-dir}" COPYONLY)
endforeach()
+
+if(NOT MSVC)
+ target_precompile_headers(${self}_o REUSE_FROM floormat)
+else()
+ target_precompile_headers(${self}_o PRIVATE ../src/precomp.hpp)
+endif()