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