ENH: add test for generated header
This commit is contained in:
parent
a91947039a
commit
c3a7680dc6
|
@ -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)
|
||||
|
|
@ -0,0 +1 @@
|
|||
//hello
|
|
@ -0,0 +1,5 @@
|
|||
#include "generated.h"
|
||||
main()
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue