PTdecode/CImg-1.3.0/resources/compile_win_visualcpp6.bat

Mon, 03 Aug 2009 23:41:04 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Mon, 03 Aug 2009 23:41:04 +0100
changeset 11
69416826d18c
parent 5
1204ebf9340d
permissions
-rwxr-xr-x

added dep/*.d and obj/*.o to hgignore

philpem@5 1 REM A dirty batch file to compile all CImg examples
philpem@5 2 REM Using the microsoft's CL compiler.
philpem@5 3 REM -----------------------------------------------
philpem@5 4 set SDKPATH=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
philpem@5 5 set CPP=cl /W3 /Zm800 /Ox /Ob2 /Oi /Ot /c /EHsc /I"%SDKPATH%\Include" /I"..\\"
philpem@5 6 set LDD=link /LIBPATH:"%SDKPATH%\Lib"
philpem@5 7 set LDDLIBS=user32.lib gdi32.lib shell32.lib
philpem@5 8
philpem@5 9 cd ..\examples\
philpem@5 10 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
philpem@5 11 FOR %%F IN (%CPPFILE%) DO (
philpem@5 12 %CPP% %%F.cpp
philpem@5 13 %LDD% %%F.obj %LDDLIBS%
philpem@5 14 )
philpem@5 15
philpem@5 16
philpem@5 17
philpem@5 18
philpem@5 19