summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-06-10 16:16:14 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-06-10 20:42:56 (GMT)
commit973fc5602066ba6e57a282581f3137dd9bfdd7a8 (patch)
tree07cd2322511d54049bf0c80d62cdca3531d88b99
parent1a995439e56445b22a2f8d71ab15b67891e74f10 (diff)
downloadCMake-973fc5602066ba6e57a282581f3137dd9bfdd7a8.zip
CMake-973fc5602066ba6e57a282581f3137dd9bfdd7a8.tar.gz
CMake-973fc5602066ba6e57a282581f3137dd9bfdd7a8.tar.bz2
gitlab-ci: test QtDialog on macOS
-rw-r--r--.gitlab-ci.yml3
-rw-r--r--.gitlab/ci/configure_macos_common.cmake2
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 697ffb0..c9f94f0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -209,6 +209,9 @@
- export PATH=$PWD/.gitlab:$PWD/.gitlab/cmake/bin:$PATH
- cmake --version
- ninja --version
+ # Download Qt on macOS
+ - "[ \"$( uname -s )\" = \"Darwin\" ] && cmake -P .gitlab/ci/download_qt.cmake"
+ - "[ \"$( uname -s )\" = \"Darwin\" ] && export CMAKE_PREFIX_PATH=$PWD/.gitlab/qt"
.before_script_windows: &before_script_windows
- Invoke-Expression -Command .gitlab/ci/cmake.ps1
diff --git a/.gitlab/ci/configure_macos_common.cmake b/.gitlab/ci/configure_macos_common.cmake
index 4b86d21..3589475 100644
--- a/.gitlab/ci/configure_macos_common.cmake
+++ b/.gitlab/ci/configure_macos_common.cmake
@@ -6,4 +6,6 @@ set(Java_JAVA_EXECUTABLE "" CACHE FILEPATH "")
set(Java_JAVAC_EXECUTABLE "" CACHE FILEPATH "")
set(Java_JAR_EXECUTABLE "" CACHE FILEPATH "")
+set(BUILD_QtDialog ON CACHE BOOL "")
+
include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake")