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

project(SkipPrecompileHeaders)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

add_executable(pch-test main.cpp non-pch.cpp)
target_precompile_headers(pch-test PRIVATE pch.h)

set_source_files_properties(non-pch.cpp PROPERTIES SKIP_PRECOMPILE_HEADERS ON)

enable_testing()
add_test(NAME pch-test COMMAND pch-test)