diff options
author | Brad King <brad.king@kitware.com> | 2011-12-23 20:34:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-12-23 21:16:52 (GMT) |
commit | 49d6dd67f1c2b3d21a47c28f6e0908062f300e4f (patch) | |
tree | dad5ebfe6b620f4e166eb1d80a971ff616eaa02d /Tests/ComplexOneConfig/Executable/CMakeLists.txt | |
parent | 76ac88b730f32dcdef80216766b3eaecb6257ed6 (diff) | |
download | CMake-49d6dd67f1c2b3d21a47c28f6e0908062f300e4f.zip CMake-49d6dd67f1c2b3d21a47c28f6e0908062f300e4f.tar.gz CMake-49d6dd67f1c2b3d21a47c28f6e0908062f300e4f.tar.bz2 |
complex: Simplify test for single-character exe name
Run the test executable as a custom command instead of depending on
cmSystemTools::RunSingleCommand.
Diffstat (limited to 'Tests/ComplexOneConfig/Executable/CMakeLists.txt')
-rw-r--r-- | Tests/ComplexOneConfig/Executable/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt index 1f0b999..c76944f 100644 --- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt +++ b/Tests/ComplexOneConfig/Executable/CMakeLists.txt @@ -55,8 +55,10 @@ SET_SOURCE_FILES_PROPERTIES(complex_nobuild.cxx PROPERTIES SET_SOURCE_FILES_PROPERTIES(complex_nobuild.c PROPERTIES HEADER_FILE_ONLY 1) +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) ADD_EXECUTABLE(A A.cxx A.hh A.h A.txt) -ADD_EXECUTABLE(complex complex testcflags.c ) +ADD_CUSTOM_COMMAND(OUTPUT Aout.h COMMAND A > Aout.h VERBATIM) +ADD_EXECUTABLE(complex complex testcflags.c Aout.h) # Sub1/NameConflictTest.c Sub2/NameConflictTest.c) ADD_EXECUTABLE(complex.file complex.file.cxx complex_nobuild.cxx complex_nobuild.c) |