Commit 172ffd5c authored by Raza, Zamaan's avatar Raza, Zamaan Committed by Wuttke, Joachim
Browse files

Modified .gitlab-ci.yml for windows

parent 0ee5ff27
......@@ -8,14 +8,15 @@ windows:
script:
- New-Item -ItemType "directory" -Confirm:$false -Force:$true -Name "build"
- cd build
- $OPT_DIR = "C:/opt/x64"
- $OPT_DIR = "C:/Users/scguser/vcpkg/installed/x64-windows;C:/opt/x64"
- $QT_MSVC_DIR = "C:/Qt/msvc"
- $QTCMake_DIR = "$QT_MSVC_DIR/lib/cmake"
- $QTDIR = "$QT_MSVC_DIR"
- $BOOST_DIR = "$OPT_DIR/boost_current"
- $BOOST_INCLUDE_DIR = "$BOOST_DIR/include"
- $LIB_DIRS = "C:/Program Files/HDF_Group/HDF5/1.12.2/lib;C:/opt/x64/lib"
- $INCLUDE_DIRS = "C:/Program Files/HDF_Group/HDF5/1.12.2/include;C:/opt/x64/include/libtiff"
- $INCLUDE_DIRS = "C:/Program Files/HDF_Group/HDF5/1.12.2/include;C:/opt/x64/include/libtiff;${BOOST_INCLUDE_DIR}"
- $SWIG_DIR = "C:/Program Files/swigwin"
- $BLOSC_DIR = "C:/opt/x64/"
- Remove-Item CM* -Recurse
- cmake -G "Visual Studio 17 2022" -A x64 -T host=x64 -DCMAKE_PREFIX_PATH="$OPT_DIR" -DQTDIR="$QT_MSVC_DIR" -DCMAKE_INCLUDE_PATH="$INCLUDE_DIRS" -DCMAKE_LIBRARY_PATH="$LIB_DIRS" -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -B. ..
- cmake --build . --config Release
......
......@@ -107,3 +107,21 @@ include_directories(SYSTEM ${EIGEN3_INCLUDE_DIR})
##### Find QHull
find_package(Qhull MODULE REQUIRED)
include_directories(SYSTEM ${QHULL_INCLUDE_DIR})
##### Find Boost
set(Boost_NO_BOOST_CMAKE ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_STATIC_RUNTIME OFF)
add_definitions(-DBOOST_ALL_DYN_LINK) # line is needed for MSVC
add_definitions(-DBOOST_UUID_FORCE_AUTO_LINK) # line is needed to link bcrypt for MSVC
# amends problems with bimap and MSVC, serialization of bimap is currently not needed
add_definitions(-DBOOST_BIMAP_DISABLE_SERIALIZATION)
find_package(Boost 1.65.1 REQUIRED)
if(Boost_FOUND)
include_directories(SYSTEM "${Boost_INCLUDE_DIRS}")
message(STATUS "Found boost:")
message(STATUS " version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}")
message(STATUS " libraries: ${Boost_LIBRARIES}")
message(STATUS " headers: ${Boost_INCLUDE_DIRS}")
endif()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment