2022-11-16 20:14:03 +01:00
|
|
|
enable_language(C)
|
2020-02-01 23:06:01 +01:00
|
|
|
|
|
|
|
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)
|