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

CI script for windows

parent ef7d3bf0
stages:
- build
# windows:
# tags:
# - Windows
# stage: build
# script:
# - New-Item -ItemType "directory" -Confirm:$false -Force:$true -Name "build"
# - cd build
# - cmd.exe "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
# - cmake -G "Visual Studio 16 2019" -A x64 -T host=x64 -DLIB_MAN=OFF -DLIB_INSTALL=OFF -B. ..
# - cmake --build . --config Release
# - Get-Location
# - dir
# - dir Release
# - ctest -C Release --output-on-failure
windows:
tags:
- Windows
stage: build
script:
- $OPT_DIR = "C:/opt/x64"
- $BOOST_DIR = "$OPT_DIR/boost_current"
- $BOOST_INCLUDE_DIR = "$BOOST_DIR/include"
- $BOOST_LIB_DIR = "$BOOST_DIR/lib"
- $QT_MSVC_DIR = "C:/Qt/msvc"
- $QTCMake_DIR = "$QT_MSVC_DIR/lib/cmake"
- $BUILD_DIR = "build"
- $QTDIR = "$QT_MSVC_DIR"
- cd $BUILD_DIR
- 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="$BOOST_INCLUDE_DIR" -DCMAKE_LIBRARY_PATH="$BOOST_LIB_DIR" -DBA_PY_PACKAGE=ON -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -B. ..
- cmake --build . --config Release
- ctest -C Release --parallel 8 --output-on-failure
- cpack -C Release -B ./winpackage
- ctest -C Release --output-on-failure
artifacts:
paths:
- build/OpenHKL*.exe
expire_in: 10 days
mac10_15:
tags:
......
......@@ -272,7 +272,7 @@ endif()
if (APPLE)
install(TARGETS OpenHKL DESTINATION .)
elseif(WIN32)
# TODO
install(TARGETS OpenHKL DESTINATION .)
else()
set_property(TARGET OpenHKL PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
......
......@@ -45,7 +45,7 @@ foreach(comp ${QtComponents})
install(FILES ${dll} DESTINATION bin)
endforeach()
set(QTDIR "C:/Qt/5.15.2/msvc2019_64")
#set(QTDIR "C:/Qt/5.15.2/msvc2019_64")
install(FILES ${QTDIR}/plugins/platforms/qwindows.dll DESTINATION bin/platforms)
install(FILES ${QTDIR}/plugins/iconengines/qsvgicon.dll DESTINATION bin/iconengines)
......
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