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.
14 lines
390 B
14 lines
390 B
|
|
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
|
|
|
|
add_library(headeriface INTERFACE)
|
|
|
|
add_custom_target(headeriface_gen
|
|
COMMENT "Generating iface_header_builddir.h"
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
${CMAKE_CURRENT_SOURCE_DIR}/iface_header_builddir.h.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/iface_header_builddir.h
|
|
VERBATIM
|
|
)
|
|
add_dependencies(headeriface headeriface_gen)
|