Removed pch.h:

- Under linux pch.h won't work as expected, instead it will slow down build time. In order to fix this, target_precompile_headers cmake function must have every header that will be used in pch.hxx generation.
- Using the opportunity i've removed headers that aren't essential in precompiled header
This commit is contained in:
Patrix
2023-01-09 20:21:46 +01:00
parent 22b53bd3d5
commit 2e427b0c5d
4 changed files with 13 additions and 11 deletions

View File

@@ -18,7 +18,17 @@ file(GLOB SRC
)
add_library(squirrel-template SHARED ${SRC})
target_precompile_headers(squirrel-template PRIVATE "src/pch.h")
target_compile_definitions(squirrel-template
PRIVATE
SCRAT_EXPORT
)
target_precompile_headers(squirrel-template
PRIVATE
"src/api/module_api.h"
"src/api/squirrel_api.h"
)
target_include_directories(squirrel-template
INTERFACE