ENH: add test for generated header

This commit is contained in:
Bill Hoffman 2006-01-09 14:56:29 -05:00
parent a91947039a
commit c3a7680dc6
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,10 @@
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
)
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR})
ADD_LIBRARY(GeneratedHeader main.cpp)

View File

@ -0,0 +1 @@
//hello

View File

@ -0,0 +1,5 @@
#include "generated.h"
main()
{
}