forked from karolherbst/OpenCL-CTS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_win.bat
32 lines (21 loc) · 1.03 KB
/
build_win.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@ECHO off
setlocal ENABLEDELAYEDEXPANSION
IF DEFINED ProgramFiles(x86) SET ProgFilesDir=%ProgramFiles(x86)%
IF NOT DEFINED ProgFilesDir SET ProgFilesDir=%ProgramFiles%
rem -------------------------------- Update these to match what's on your PC ------------------------------------------------
SET VCPATH="%ProgFilesDir%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com"
SET PATH=%CMAKEPATH%;%PATH%
rem -------------------------------------------------------------------------------------------------------------------------
setlocal ENABLEDELAYEDEXPANSION
call "%VS140COMNTOOLS%\vsvars32.bat"
mkdir build_win
pushd build_win
IF NOT EXIST CLConform.sln (
echo "Solution file not found, running Cmake"
cmake -G "Visual Studio 14 2015 Win64" ..\. -DCL_OFFLINE_COMPILER=<TO_SET> -DCL_LIBCLCXX_DIR=<TO_SET> -DCL_INCLUDE_DIR=<TO_SET> -DCL_LIB_DIR=<TO_SET> -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=. -DOPENCL_LIBRARIES=OpenCL
) else (
echo "Solution file found CLConform.sln "
)
echo Building CLConform.sln...
%VCPATH% CLConform.sln /build
GOTO:EOF