PTdecode/CImg-1.3.0/resources/compile_win_visualcpp.bat

Mon, 03 Aug 2009 17:23:54 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Mon, 03 Aug 2009 17:23:54 +0100
changeset 9
ebce4a7615e9
parent 5
1204ebf9340d
permissions
-rwxr-xr-x

1st version with printing support. Now uses Libgd for image generation functionality.

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