CMakeLists.txt 390 B

12345678910111213
  1. set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
  2. add_library(headeriface INTERFACE)
  3. add_custom_target(headeriface_gen
  4. COMMENT "Generating iface_header_builddir.h"
  5. COMMAND ${CMAKE_COMMAND} -E copy_if_different
  6. ${CMAKE_CURRENT_SOURCE_DIR}/iface_header_builddir.h.in
  7. ${CMAKE_CURRENT_BINARY_DIR}/iface_header_builddir.h
  8. VERBATIM
  9. )
  10. add_dependencies(headeriface headeriface_gen)