Require CMake 3.1.0 and update Dockerfile

This commit is contained in:
Janek Bevendorff 2017-06-26 01:40:40 +02:00
parent 549eaefdb8
commit 35e86efbce
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53
2 changed files with 14 additions and 8 deletions

View File

@ -22,7 +22,7 @@ endif()
project(KeePassXC)
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.1.0)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

View File

@ -21,7 +21,13 @@ RUN set -x \
&& apt-get install --yes software-properties-common
RUN set -x \
&& add-apt-repository --yes ppa:beineri/opt-qt58-trusty
&& add-apt-repository ppa:george-edison55/cmake-3.x
ENV QT_VERSION=qt59
RUN set -x \
&& add-apt-repository --yes ppa:beineri/opt-${QT_VERSION}-trusty
RUN set -x \
&& apt-get update \
@ -29,9 +35,9 @@ RUN set -x \
g++ \
cmake \
libgcrypt20-dev \
qt58base \
qt58tools \
qt58x11extras \
${QT_VERSION}base \
${QT_VERSION}tools \
${QT_VERSION}x11extras \
libxi-dev \
libxtst-dev \
zlib1g-dev \
@ -50,7 +56,7 @@ VOLUME /keepassxc/src
VOLUME /keepassxc/out
WORKDIR /keepassxc
ENV CMAKE_PREFIX_PATH=/opt/qt58/lib/cmake
ENV LD_LIBRARY_PATH=/opt/qt58/lib
ENV CMAKE_PREFIX_PATH=/opt/${QT_VERSION}/lib/cmake
ENV LD_LIBRARY_PATH=/opt/${QT_VERSION}/lib
RUN set -x \
&& echo /opt/qt58/lib > /etc/ld.so.conf.d/qt58.conf
&& echo /opt/${QT_VERSION}/lib > /etc/ld.so.conf.d/${QT_VERSION}.conf