mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Print CMake entities' properties in human-readable form for debugging. Issue: #27513
23 lines
455 B
CMake
23 lines
455 B
CMake
enable_language(C)
|
|
|
|
add_library(mylib STATIC nothing.c)
|
|
|
|
target_sources(mylib
|
|
PUBLIC
|
|
FILE_SET HEADERS
|
|
FILES nothing.h
|
|
)
|
|
|
|
add_executable(something something.c something.h)
|
|
|
|
target_link_libraries(something PUBLIC nothing)
|
|
|
|
# Printing all for library. To reduce maintenance burden, we only pin a few
|
|
# properties in the expected output instead of listing every property reported
|
|
# by ALL.
|
|
cmake_language(
|
|
PRINT_PROPERTIES
|
|
TARGETS mylib
|
|
ALL
|
|
)
|