1REM Licensed to the Apache Software Foundation (ASF) under one 2REM or more contributor license agreements. See the NOTICE file 3REM distributed with this work for additional information 4REM regarding copyright ownership. The ASF licenses this file 5REM to you under the Apache License, Version 2.0 (the 6REM "License"); you may not use this file except in compliance 7REM with the License. You may obtain a copy of the License at 8REM 9REM https://www.apache.org/licenses/LICENSE-2.0 10REM 11REM Unless required by applicable law or agreed to in writing, 12REM software distributed under the License is distributed on an 13REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14REM KIND, either express or implied. See the License for the 15REM specific language governing permissions and limitations 16REM under the License. 17 18echo off 19 20REM Set up the solution file in Windows. 21 22set my_cmake_path="put_your_cmake_path_here" 23set cmake_path_win7="C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" 24set cmake_path_xp="C:\Program Files\CMake 2.8\bin\cmake.exe" 25 26if exist %my_cmake_path% ( 27 set cmake_path=%my_cmake_path% 28 goto RUN_CMAKE 29) 30 31if exist %cmake_path_win7% ( 32 set cmake_path=%cmake_path_win7% 33 goto RUN_CMAKE 34) 35 36if exist %cmake_path_xp% ( 37 set cmake_path=%cmake_path_xp% 38 goto RUN_CMAKE 39) 40 41echo "Set the proper cmake path in the variable 'my_cmake_path' in cmake_windows.bat, and re-run" 42goto EXIT_ERROR 43 44:RUN_CMAKE 45%cmake_path% -G"Visual Studio 9 2008" -H. -Bbuild_win32 46 47 48:EXIT_ERROR 49