3 CMAKE_COMMAND
="@CMAKE_INSTALL_PREFIX@/bin/cmake"
4 CMake_SOURCE_DIR
="@CMake_SOURCE_DIR@"
5 CMake_BINARY_DIR
="@CMake_BINARY_DIR@"
6 CMAKE_INSTALL_PREFIX
="@CMAKE_INSTALL_PREFIX@"
7 CMAKE_BUILD_TOOL
="@CMAKE_BUILD_TOOL@"
9 SOURCE_DIR
="${CMake_SOURCE_DIR}/Tests/Simple"
10 BINARY_DIR
="${CMake_BINARY_DIR}/Tests/TestInstall"
14 echo "Erasing ${CMAKE_INSTALL_PREFIX}" &&
15 ([ ! -d "${CMAKE_INSTALL_PREFIX}" ] ||
rm -rf "${CMAKE_INSTALL_PREFIX}") &&
16 mkdir
-p "${CMAKE_INSTALL_PREFIX}" &&
17 echo "Running make install" &&
19 cd "${CMake_BINARY_DIR}" &&
20 "${CMAKE_BUILD_TOOL}" install
26 echo "Entering ${BINARY_DIR}" &&
34 echo "Writing CMakeCache.txt"
36 cat > CMakeCache.txt
<<EOF
43 write_cache ||
return 1
45 "${CMAKE_COMMAND}" "${SOURCE_DIR}"
51 echo "Running ${CMAKE_BUILD_TOOL}"
57 echo "Running ${BINARY_DIR}/simple"
59 "${BINARY_DIR}/simple"