From caca0a0e3bc9b6233d38cdb1b786edf113ff5d14 Mon Sep 17 00:00:00 2001 From: Chad Elliott Date: Mon, 17 Oct 2022 14:00:05 -0500 Subject: Added support for precompiled headers. --- templates/cmake.mpd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') diff --git a/templates/cmake.mpd b/templates/cmake.mpd index 33936e76..8700206d 100644 --- a/templates/cmake.mpd +++ b/templates/cmake.mpd @@ -66,6 +66,10 @@ target_include_directories(${PROJECT_TARGET} PUBLIC <%env_includes%>) <%if(libpaths)%> target_link_directories(${PROJECT_TARGET} PUBLIC <%env_libpaths%>) +<%endif%> +<%if(pch_header)%> +target_precompile_headers(${PROJECT_TARGET} PRIVATE <%pch_header%>) + <%endif%> <%if(macros)%> add_compile_definitions(<%macros%>) -- cgit v1.2.1