mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
13 lines
306 B
CMake
13 lines
306 B
CMake
cmake_policy(SET CMP0076 NEW)
|
|
enable_language(CXX)
|
|
|
|
add_library(iface INTERFACE)
|
|
|
|
add_subdirectory(RelativePathInSubdirInterface)
|
|
|
|
get_property(iface_sources TARGET iface PROPERTY INTERFACE_SOURCES)
|
|
message(STATUS "iface: ${iface_sources}")
|
|
|
|
add_executable(main main.cpp)
|
|
target_link_libraries(main iface)
|