1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/PTdecode/CImg-1.3.0/resources/compile_win_visualcpp.bat Mon Aug 03 14:09:20 2009 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +REM A dirty batch file to compile all CImg examples 1.5 +REM Using the microsoft's CL compiler. 1.6 +REM ----------------------------------------------- 1.7 +set SDKPATH=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2 1.8 +set CPP=cl /W3 /Ox /Ob2 /Oi /Ot /c /EHsc /I"%SDKPATH%\Include" /I"..\\" 1.9 +set LDD=link /LIBPATH:"%SDKPATH%\Lib" 1.10 +set LDDLIBS=user32.lib gdi32.lib shell32.lib 1.11 + 1.12 +cd ..\examples\ 1.13 +set CPPFILE=CImg_demo captcha curve_editor dtmri_view edge_explorer fade_images generate_loop_macros greycstoration hough_transform image2ascii image_registration image_surface jawbreaker mcf_levelsets3D mcf_levelsets odykill pde_heatflow2D pde_TschumperleDeriche2D radon_transform scene3d tetris tron tutorial wavelet_atrous use_draw_gradient use_greycstoration use_nlmeans use_RGBclass use_skeleton gmic 1.14 +FOR %%F IN (%CPPFILE%) DO ( 1.15 + %CPP% %%F.cpp 1.16 + %LDD% %%F.obj %LDDLIBS% 1.17 +) 1.18 + 1.19 + 1.20 + 1.21 + 1.22 +