Create a gist now

Instantly share code, notes, and snippets.

@dannyedel /buildme.bat Secret
Created Feb 24, 2016

What would you like to do?
SET BUILDDIR=C:\projects\dspdfviewer\build
SET SOURCEDIR=\\vboxsvr\dspdfviewer
SET QTPATH=C:\qt\qt5.5.1\5.5\msvc2013
SET BOOSTPATH=C:\local\boost_1_60_0
@rem ******************************************
@rem It should not be needed to edit below here
@rem ******************************************
call "C:\Program Files\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\cairo\bin
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\expat\bin
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\fontconfig\lib
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\freetype\bin
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\lcms\lib\MS
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\libiconv\lib
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\libjpeg-turbo\bin
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\libpng\bin
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\libtiff\bin
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\openjpeg\bin
SET PATH=%PATH%;C:\dspdf\popplerDyn\deps\zlib\bin
SET PATH=%PATH%;C:\dspdf\popplerDyn\poppler\bin
SET PATH=%PATH%;%QTPATH%\bin
mkdir %BUILDDIR%
cd %BUILDDIR%
cmake %SOURCEDIR% -G "Visual Studio 12 2013" ^
-DBoostStaticLink=ON ^
-DWindowsStaticLink=OFF ^
-DDownloadTestPDF=ON ^
-DCMAKE_PREFIX_PATH=%QTPATH% ^
-DBOOST_ROOT=%BOOSTPATH% ^
-DBOOST_LIBRARYDIR=%BOOSTPATH%\lib32-msvc-12.0
cmake --build . --config Debug
copy C:\dspdf\popplerDyn\poppler\bin\poppler-qt5d.dll ^
Testing\Debug\poppler-qt5.dll
copy C:\dspdf\popplerDyn\poppler\bin\poppler-qt5d.dll ^
Debug\poppler-qt5.dll
ctest --output-on-failure -C Debug .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment