1cmake_policy(SET CMP0076 NEW) 2include_directories(Inc1 Inc2) 3add_library(iface INTERFACE) 4target_sources(iface PRIVATE iface.c) 5# Ensure the INCLUDE_DIRECTORIES property is populated. 6# Since interface libraries do not actually compile anything, this should be ignored. 7set_property(TARGET iface APPEND PROPERTY INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/Inc3 ${CMAKE_CURRENT_SOURCE_DIR}/Inc4) 8