blob: 90e19156a8e0c74337fab5102c2f9f23e71f62f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
cmake_minimum_required(VERSION 3.15)
project(PrecompileHeaders C)
add_library(foo foo.c)
target_include_directories(foo PUBLIC include)
target_precompile_headers(foo PUBLIC
foo.h
<stdio.h>
\"string.h\"
)
add_library(bar INTERFACE)
target_include_directories(bar INTERFACE include)
target_precompile_headers(bar INTERFACE bar.h)
add_executable(foobar foobar.c)
target_link_libraries(foobar foo bar)
|