2006-02-19 21:10:25 +03:00
|
|
|
# Simulate in-source build include-file behavior for out-of-source
|
|
|
|
# builds.
|
|
|
|
SET(CMAKE_INCLUDE_CURRENT_DIR 1)
|
|
|
|
|
2006-01-09 22:56:29 +03:00
|
|
|
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated.h
|
|
|
|
COMMAND
|
|
|
|
${CMAKE_COMMAND} ARGS -E
|
|
|
|
copy ${CMAKE_CURRENT_SOURCE_DIR}/generated.h.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/generated.h
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_LIBRARY(GeneratedHeader main.cpp)
|
|
|
|
|