[cmake-commits] andy committed CMakeLists.txt 1.1 1.2 run.cmake.in
NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Feb 22 11:42:28 EST 2007
Update of /cvsroot/CMake/CMake/Tests/SimpleExclude
In directory public:/mounts/ram/cvs-serv14629/Tests/SimpleExclude
Modified Files:
CMakeLists.txt
Added Files:
run.cmake.in
Log Message:
ENH: Improve test
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/SimpleExclude/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CMakeLists.txt 22 Feb 2007 13:39:11 -0000 1.1
+++ CMakeLists.txt 22 Feb 2007 16:42:26 -0000 1.2
@@ -6,3 +6,5 @@
add_subdirectory(dirC EXCLUDE_FROM_ALL)
add_subdirectory(dirD)
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/run.cmake.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/run.cmake" @ONLY)
--- NEW FILE: run.cmake.in ---
set(t4_name "@CMAKE_CURRENT_BINARY_DIR@${CFG_DIR}/t4")
execute_process(COMMAND "${t4_name}"
RESULT_VARIABLE "t4_var")
message("T4 ${t4_name} resulted ${t4_var}")
set(t9_name "@CMAKE_CURRENT_BINARY_DIR@${CFG_DIR}/t9")
execute_process(COMMAND "${t9_name}"
RESULT_VARIABLE "t9_var")
message("T9 ${t9_name} resulted ${t9_var}")
if ( "${t4_var}" EQUAL "0" AND "${t9_var}" EQUAL "0" )
message("Everything is good, Yoshimi won...")
else ( "${t4_var}" EQUAL "0" AND "${t9_var}" EQUAL "0" )
message(FATAL_ERROR "Yoshimi lost... The evil pink robots will take over the world")
endif ( "${t4_var}" EQUAL "0" AND "${t9_var}" EQUAL "0" )
More information about the Cmake-commits
mailing list