diff --git a/CMakeLists.txt b/CMakeLists.txt index 638ff32..5caca86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ # # http://go.microsoft.com/fwlink/?LinkID=615561 -cmake_minimum_required (VERSION 3.11) +cmake_minimum_required (VERSION 3.16) project (DirectXTK12 LANGUAGES CXX) @@ -138,6 +138,8 @@ endif() add_library(${PROJECT_NAME} STATIC ${LIBRARY_SOURCES} Src/Shaders/Compiled/SpriteEffect_SpriteVertexShader.inc) +target_precompile_headers(${PROJECT_NAME} PRIVATE Src/pch.h) + add_custom_command( OUTPUT "${CMAKE_SOURCE_DIR}/Src/Shaders/Compiled/SpriteEffect_SpriteVertexShader.inc" MAIN_DEPENDENCY "${CMAKE_SOURCE_DIR}/Src/Shaders/CompileShaders.cmd"