diff --git a/samples/qt/VoxelDemo/VoxelDemo.vcproj b/samples/qt/VoxelDemo/VoxelDemo.vcproj deleted file mode 100644 index 68d7d2e44f..0000000000 --- a/samples/qt/VoxelDemo/VoxelDemo.vcproj +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/qt/VoxelDemo/VoxelDemo.vcxproj b/samples/qt/VoxelDemo/VoxelDemo.vcxproj deleted file mode 100644 index ad02b85aac..0000000000 --- a/samples/qt/VoxelDemo/VoxelDemo.vcxproj +++ /dev/null @@ -1,128 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - - {EF9DFAE9-E10E-42D4-87D1-52431728AFDF} - VoxelDemo - Win32Proj - - - - Application - Unicode - true - - - Application - Unicode - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\ - $(Configuration)\ - true - $(SolutionDir)$(Configuration)\ - $(Configuration)\ - false - - - - Disabled - .\inc;$(CSF_OPT_INC);%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;WNT;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - EditAndContinue - - - opengl32.lib;glu32.lib;TKernel.lib;TKMath.lib;TKGeomBase.lib;TKV3d.lib;TKService.lib;TKG3d.lib;TKVoxel.lib;TKTopAlgo.lib;TKBRep.lib;TKPrim.lib;TKOpenGl.lib;vfw32.lib;QtCore4.lib;QtGui4.lib;%(AdditionalDependencies) - $(CSF_OPT_LIB32D);%(AdditionalLibraryDirectories) - true - Console - false - - - MachineX86 - - - - - $(CSF_OPT_INC);.\inc;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;WNT;%(PreprocessorDefinitions) - MultiThreadedDLL - - - Level3 - ProgramDatabase - - - opengl32.lib;glu32.lib;TKernel.lib;TKMath.lib;TKGeomBase.lib;TKV3d.lib;TKService.lib;TKG3d.lib;TKVoxel.lib;TKTopAlgo.lib;TKBRep.lib;TKPrim.lib;TKOpenGl.lib;vfw32.lib;QtCore4.lib;QtGui4.lib;%(AdditionalDependencies) - $(CSF_OPT_LIB32);%(AdditionalLibraryDirectories) - true - Console - true - true - false - - - MachineX86 - - - - - - - - - - - - - - - moc.exe inc\%(Filename)%(Extension) -o moc\moc_%(Filename).cpp - - moc\moc_%(Filename).cpp;%(Outputs) - moc.exe inc\%(Filename)%(Extension) -o moc\moc_%(Filename).cpp - - moc\moc_%(Filename).cpp;%(Outputs) - - - - - moc.exe inc\%(Filename)%(Extension) -o moc\moc_%(Filename).cpp - - moc\moc_%(Filename).cpp;%(Outputs) - moc.exe inc\%(Filename)%(Extension) -o moc\moc_%(Filename).cpp - - moc\moc_%(Filename).cpp;%(Outputs) - - - - - - - \ No newline at end of file diff --git a/samples/qt/VoxelDemo/genproj.bat b/samples/qt/VoxelDemo/genproj.bat new file mode 100644 index 0000000000..997b1612b8 --- /dev/null +++ b/samples/qt/VoxelDemo/genproj.bat @@ -0,0 +1,43 @@ +REM Generation of vcproj files with qmake utilite +REM Variable QTDIR and PATH to qmake executable must be defined without fail + +REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10), +REM second argument specifies architecture) (win32 or win64) +REM third argument specifies Debug or Release mode + +call "%~dp0../../../env.bat" %1 %2 %3 + +set EXT=vcxproj + +if not "%1" == "" ( + if /I "%1" == "vc8" ( + set VCVER=vc8 + set "VCVARS=%VS80COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc9" ( + set VCVER=vc9 + set "VCVARS=%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc10" ( + set VCVER=vc10 + set EXT=vcxproj + set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc11" ( + set VCVER=vc11 + set EXT=vcxproj + set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc12" ( + set VCVER=vc12 + set EXT=vcxproj + set "VCVARS=%VS120COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else ( + echo Error: first argument ^(%1^) should specify supported version of Visual C++, + echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^) + exit + ) +) + +if ["%ARCH%"] == ["32"] set VCARCH=x86 +if ["%ARCH%"] == ["64"] set VCARCH=amd64 + +call "%VCVARS%" %VCARCH% + +qmake -tp vc -o VoxelDemo.%EXT% VoxelDemo.pro