mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
11 lines
275 B
CMake
11 lines
275 B
CMake
|
|
enable_language(C)
|
|
|
|
add_library(foo STATIC foo.c)
|
|
target_sources(foo PUBLIC FILE_SET HEADERS FILES foo.h)
|
|
|
|
get_property(scope FILE_SET HEADERS TARGET foo PROPERTY SCOPE)
|
|
if(NOT scope STREQUAL "PUBLIC")
|
|
message(SEND_ERROR "wrong scope: ${scope} instead of PUBLIC")
|
|
endif()
|