Update to use CMake 3.16 for pch support
note VS 2019 (16.5) includes CMake 3.16
This commit is contained in:
Родитель
9314ef4d00
Коммит
78fcc30ea4
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
# http://go.microsoft.com/fwlink/?LinkID=615561
|
# http://go.microsoft.com/fwlink/?LinkID=615561
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 3.11)
|
cmake_minimum_required (VERSION 3.16)
|
||||||
|
|
||||||
project (DirectXTK12 LANGUAGES CXX)
|
project (DirectXTK12 LANGUAGES CXX)
|
||||||
|
|
||||||
|
@ -138,6 +138,8 @@ endif()
|
||||||
|
|
||||||
add_library(${PROJECT_NAME} STATIC ${LIBRARY_SOURCES} Src/Shaders/Compiled/SpriteEffect_SpriteVertexShader.inc)
|
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(
|
add_custom_command(
|
||||||
OUTPUT "${CMAKE_SOURCE_DIR}/Src/Shaders/Compiled/SpriteEffect_SpriteVertexShader.inc"
|
OUTPUT "${CMAKE_SOURCE_DIR}/Src/Shaders/Compiled/SpriteEffect_SpriteVertexShader.inc"
|
||||||
MAIN_DEPENDENCY "${CMAKE_SOURCE_DIR}/Src/Shaders/CompileShaders.cmd"
|
MAIN_DEPENDENCY "${CMAKE_SOURCE_DIR}/Src/Shaders/CompileShaders.cmd"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче