summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders/PchPrologueEpilogue.cmake
blob: 3e27620f9e7ca1d392efac41013400ed30eeb8db (plain)
1
2
3
4
5
6
7
8
9
10
11
cmake_minimum_required(VERSION 3.15)

project(PchPrologueEpilogue)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_PCH_PROLOGUE "#pragma warning(push, 0)")
set(CMAKE_PCH_EPILOGUE "#pragma warning(pop)")

add_executable(main main.cpp)
target_precompile_headers(main PRIVATE pch.h)