You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
399 B
8 lines
399 B
3 years ago
|
cmake_policy(SET CMP0076 NEW)
|
||
|
include_directories(Inc1 Inc2)
|
||
|
add_library(iface INTERFACE)
|
||
|
target_sources(iface PRIVATE iface.c)
|
||
|
# Ensure the INCLUDE_DIRECTORIES property is populated.
|
||
|
# Since interface libraries do not actually compile anything, this should be ignored.
|
||
|
set_property(TARGET iface APPEND PROPERTY INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/Inc3 ${CMAKE_CURRENT_SOURCE_DIR}/Inc4)
|