CMake/Windows: Add PCH support

This commit is contained in:
spycrab
2019-05-15 19:28:04 +02:00
parent 481b7cd085
commit bab00088d4
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
add_library(pch pch.h pch.cpp)
set(PCH_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set(PCH_NAME ${PCH.pch})
target_compile_options(pch PUBLIC /Ycpch.h /Fp${PCH_DIRECTORY}/${PCH_NAME})