cmake/Tests/RunCMake/PrecompileHeaders/PchDebugGenex.cmake

10 lines
249 B
CMake
Raw Normal View History

2020-08-30 11:54:41 +02:00
cmake_minimum_required(VERSION 3.15)
project(PchDebugGenex 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>
)