Skip to content

Commit e32bad9

Browse files
committed
update build script
1 parent ae9b56a commit e32bad9

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

runCmakeVS.cmd

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
REM Adjust paths
1+
REM This scripts build ORE and ORE_SWIG
2+
REM Adjust paths
23
SET GENERATOR="Visual Studio 17 2022"
34
SET DEMO_BOOST_ROOT=C:\local\boost_1_72_0
45
SET DEMO_BOOST_LIB=C:\local\boost_1_72_0\lib64-msvc-14.2
5-
SET DEMO_SWIG_DIR=C:\swigwin-4.1.1
6-
SET DEMO_ORE_DIR=C:\dev\oreplus_2\ore
7-
SET DEMO_ORE_SWIG_DIR=C:\dev\oreplus_2\oreswig
6+
SET DEMO_SWIG_DIR=C:\dev\swigwin-4.1.1
7+
SET DEMO_ORE_DIR=C:\dev\ore
8+
SET DEMO_ORE_SWIG_DIR=C:\dev\oreswig
89
REM the next path is optional, but if not set, one need to set -DORE_USE_ZLIB=OFF
910
SET DEMO_ZLIB_ROOT=C:\dev\vcpkg\packages\zlib_x64-windows
11+
REM SET VCPKG_ROOT=C:\dev\vcpkg
12+
REM If you use VCPKG for zlib and eigen, add -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake to the cmake command
13+
1014

1115
REM building ORE, one can skip this part, make sure to delete the build dir in the ORE_DIR if there is any
1216
REM it is recommended to install the eigen and zlib library on the system before building ORE
@@ -18,6 +22,7 @@ SET BOOST_INCLUDEDIR=%DEMO_BOOST_ROOT%
1822
SET BOOST_LIBRARYDIR=%DEMO_BOOST_LIB%
1923
SET ZLIB_ROOT=%DEMO_ZLIB_ROOT%
2024
cmake -G %GENERATOR% -A x64 .. -DMSVC_LINK_DYNAMIC_RUNTIME=OFF -DORE_BUILD_DOC=OFF -DORE_BUILD_EXAMPLES=OFF -DORE_BUILD_TESTS=OFF -DORE_BUILD_APP=OFF -DQL_BUILD_BENCHMARK=OFF -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_TEST_SUITE=OFF -DCMAKE_BUILD_TYPE=Release -DORE_USE_ZLIB=ON -DQL_ENABLE_SESSIONS=ON -DBoost_NO_SYSTEM_PATHS=ON
25+
2126
cd %DEMO_ORE_DIR%\build
2227
cmake --build . --config Release
2328

0 commit comments

Comments
 (0)