Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Commit

Permalink
Require CMake 3.1.0 and update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
phoerious committed Jun 26, 2017
1 parent 549eaef commit 35e86ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
20 changes: 13 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@ 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 \
&& apt-get install --yes \
g++ \
cmake \
libgcrypt20-dev \
qt58base \
qt58tools \
qt58x11extras \
${QT_VERSION}base \
${QT_VERSION}tools \
${QT_VERSION}x11extras \
libxi-dev \
libxtst-dev \
zlib1g-dev \
Expand All @@ -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

0 comments on commit 35e86ef

Please sign in to comment.