59ee14b9ff459d0af548e4378aca0fe106393d90
[platform/upstream/cmake.git] / Tests / RunCMake / PrecompileHeaders / DisabledPch.cmake
1 cmake_minimum_required(VERSION 3.15)
2 project(DisabledPch C)
3
4 add_library(foo foo.c)
5 target_include_directories(foo PUBLIC include)
6 target_precompile_headers(foo PUBLIC
7   include/foo.h
8   <stdio.h>
9   \"string.h\"
10 )
11
12 add_executable(foobar foobar.c)
13 target_link_libraries(foobar foo)
14 set_target_properties(foobar PROPERTIES DISABLE_PRECOMPILE_HEADERS ON)