IncludeDirectories.cmake 399 B

1234567
  1. cmake_policy(SET CMP0076 NEW)
  2. include_directories(Inc1 Inc2)
  3. add_library(iface INTERFACE)
  4. target_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.
  7. set_property(TARGET iface APPEND PROPERTY INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/Inc3 ${CMAKE_CURRENT_SOURCE_DIR}/Inc4)