cmake/Tests/RunCMake/PrecompileHeaders/PchDebugGenex.cmake

9 lines
206 B
CMake
Raw Normal View History

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