mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
4d13f472a2
The `CMakeLists.txt` file already calls `cmake_minimum_required` and `project` before including each case's code.
9 lines
206 B
CMake
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>
|
|
)
|