cmake/Tests/RunCMake/PrecompileHeaders/PchDebugGenex.cmake
2022-11-16 20:14:03 +01:00

9 lines
206 B
CMake

enable_language(C)
add_library(foo foo.c)
target_include_directories(foo PUBLIC include)
target_precompile_headers(foo PUBLIC
"$<$<CONFIG:Debug>:${CMAKE_CURRENT_SOURCE_DIR}/include/foo.h>"
<stdio.h>
)