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.
17 lines
308 B
17 lines
308 B
3 years ago
|
enable_language(C)
|
||
|
|
||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||
|
|
||
|
add_library(empty empty.c)
|
||
|
target_precompile_headers(empty PUBLIC
|
||
|
<stdio.h>
|
||
|
<string.h>
|
||
|
)
|
||
|
|
||
|
add_library(foo foo.c)
|
||
|
target_precompile_headers(foo PUBLIC
|
||
|
<stdio.h>
|
||
|
<string.h>
|
||
|
)
|
||
|
set_target_properties(foo PROPERTIES PCH_INSTANTIATE_TEMPLATES OFF)
|