summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders/PchReuseFromSubdir.cmake
blob: fefb4eeebba08408194f305f0aecbb8ff3345eff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
enable_language(C)

add_library(empty empty.c)
target_precompile_headers(empty PUBLIC
  <stdio.h>
  <string.h>
)
target_include_directories(empty PUBLIC include)

add_library(foo foo.c)
target_include_directories(foo PUBLIC include)
target_precompile_headers(foo REUSE_FROM empty)

subdirs(subdir)

enable_testing()
add_test(NAME foobar COMMAND foobar)