summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommand
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-03-24 17:20:46 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-03-24 17:20:46 (GMT)
commit6ccc18bc2673befd66d62c472c1a4ea4bf60f5aa (patch)
tree67ab7d70b8df70875fefec7bf6bd154d2dfa80e8 /Tests/CustomCommand
parentf7c1723135f140eaac1ee02c31c0339761778f22 (diff)
downloadCMake-6ccc18bc2673befd66d62c472c1a4ea4bf60f5aa.zip
CMake-6ccc18bc2673befd66d62c472c1a4ea4bf60f5aa.tar.gz
CMake-6ccc18bc2673befd66d62c472c1a4ea4bf60f5aa.tar.bz2
BUG: fix test to list generate dheader
Diffstat (limited to 'Tests/CustomCommand')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt1
-rw-r--r--Tests/CustomCommand/GeneratedHeader/CMakeLists.txt2
2 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index 3f7a999..f62be0e 100644
--- a/Tests/CustomCommand/CMakeLists.txt
+++ b/Tests/CustomCommand/CMakeLists.txt
@@ -142,6 +142,7 @@ ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/foo.c
# add the library
ADD_EXECUTABLE(CustomCommand
+ ${PROJECT_BINARY_DIR}/foo.h
${PROJECT_BINARY_DIR}/foo.c
${PROJECT_BINARY_DIR}/wrapped.c
${PROJECT_BINARY_DIR}/generated.c
diff --git a/Tests/CustomCommand/GeneratedHeader/CMakeLists.txt b/Tests/CustomCommand/GeneratedHeader/CMakeLists.txt
index 16d0ca4..2d47d87 100644
--- a/Tests/CustomCommand/GeneratedHeader/CMakeLists.txt
+++ b/Tests/CustomCommand/GeneratedHeader/CMakeLists.txt
@@ -9,5 +9,5 @@ ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated.h
${CMAKE_CURRENT_BINARY_DIR}/generated.h
)
-ADD_LIBRARY(GeneratedHeader main.cpp)
+ADD_LIBRARY(GeneratedHeader main.cpp ${CMAKE_CURRENT_BINARY_DIR}/generated.h)