You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
401 B
19 lines
401 B
5 years ago
|
cmake_minimum_required(VERSION 3.15)
|
||
|
project(PchReuseFromSubdir 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)
|