RelativePathInSubdirInterface.cmake 306 B

123456789101112
  1. cmake_policy(SET CMP0076 NEW)
  2. enable_language(CXX)
  3. add_library(iface INTERFACE)
  4. add_subdirectory(RelativePathInSubdirInterface)
  5. get_property(iface_sources TARGET iface PROPERTY INTERFACE_SOURCES)
  6. message(STATUS "iface: ${iface_sources}")
  7. add_executable(main main.cpp)
  8. target_link_libraries(main iface)