-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.bat
53 lines (42 loc) · 1.39 KB
/
configure.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
echo OFF
set GENERATOR="Visual Studio 9 2008"
set CMAKE_PATH="C:\Program Files (x86)\CMake 2.8"
rem Possible values for the generator (-G) are as follow. Ues the one suitable for you
rem
rem "Borland Makefiles"
rem "MSYS Makefiles"
rem "MinGW Makefiles"
rem "NMake Makefiles"
rem "Unix Makefiles"
rem "Visual Studio 6"
rem "Visual Studio 7"
rem "Visual Studio 7 .NET 2003"
rem "Visual Studio 8 2005"
rem "Visual Studio 8 2005 Win64"
rem "Visual Studio 9 2008"
rem "Visual Studio 9 2008 Win64"
rem "Watcom WMake"
rem "CodeBlocks - MinGW Makefiles"
rem "CodeBlocks - Unix Makefiles"
rem "Eclipse CDT4 - MinGW Makefiles"
rem "Eclipse CDT4 - NMake Makefiles"
rem "Eclipse CDT4 - Unix Makefiles"
rem *****************************************************************************
rem Creating directories if they are missing
if NOT EXIST build (
echo creating build directory...
md build
)
if NOT EXIST build\Windows (
echo creating build\Windows directory...
md build\Windows
)
chdir build\Windows\
echo ***** Creating %GENERATOR% project *****
rem Reg QUERY "HKLM\SOFTWARE\Wow6432Node\Kitware\Cmake 2.6.1" /ve
rem for /f "tokens=2* delims= " %%i in ('reg query "HKLM\SOFTWARE\Wow6432Node\Kitware\Cmake 2.6.1" /ve') do (
rem set CMAKE_PATH=%%j
rem )
rem echo CMake found at %CMAKE_PATH%
%CMAKE_PATH%\bin\cmake.exe -G %GENERATOR% ..\..\
pause