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.
15 lines
351 B
15 lines
351 B
5 years ago
|
cmake_minimum_required(VERSION 3.15)
|
||
|
project(DisabledPch C)
|
||
|
|
||
|
add_library(foo foo.c)
|
||
|
target_include_directories(foo PUBLIC include)
|
||
|
target_precompile_headers(foo PUBLIC
|
||
|
include/foo.h
|
||
|
<stdio.h>
|
||
|
\"string.h\"
|
||
|
)
|
||
|
|
||
|
add_executable(foobar foobar.c)
|
||
|
target_link_libraries(foobar foo)
|
||
|
set_target_properties(foobar PROPERTIES DISABLE_PRECOMPILE_HEADERS ON)
|