Add a section of how to link IE with CMake project (#99)
[platform/upstream/dldt.git] / inference-engine / samples / create_msvc2015_solution.bat
1 @echo off
2
3 :: Copyright (c) 2018 Intel Corporation
4 ::
5 :: Licensed under the Apache License, Version 2.0 (the "License");
6 :: you may not use this file except in compliance with the License.
7 :: You may obtain a copy of the License at
8 ::
9 ::      http://www.apache.org/licenses/LICENSE-2.0
10 ::
11 :: Unless required by applicable law or agreed to in writing, software
12 :: distributed under the License is distributed on an "AS IS" BASIS,
13 :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 :: See the License for the specific language governing permissions and
15 :: limitations under the License.
16
17
18 @setlocal
19 set "ROOT_DIR=%~dp0"
20
21 set "SOLUTION_DIR64=%USERPROFILE%\Documents\Intel\OpenVINO\inference_engine_samples_2015"
22 if exist "%SOLUTION_DIR64%" rd /s /q "%SOLUTION_DIR64%"
23 if "%InferenceEngine_DIR%"=="" set "InferenceEngine_DIR=%ROOT_DIR%\..\share"
24 if exist "%ROOT_DIR%\..\..\bin\setupvars.bat" call "%ROOT_DIR%\..\..\bin\setupvars.bat"
25 if exist "%ROOT_DIR%\..\..\..\bin\setupvars.bat" call "%ROOT_DIR%\..\..\..\bin\setupvars.bat"
26
27 echo Creating Visual Studio 2015 (x64) files in %SOLUTION_DIR64%... && ^
28 cd "%ROOT_DIR%" && cmake -E make_directory "%SOLUTION_DIR64%" && cd "%SOLUTION_DIR64%" && cmake -G "Visual Studio 14 2015 Win64" "%ROOT_DIR%"
29
30 echo Done.
31 pause