1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-06-30 01:02:29 +00:00

Externalize build of third parties from the main build

This commit is contained in:
2019-03-22 16:07:04 +01:00
parent 2390cc983b
commit 768fa3cfe0
8 changed files with 41 additions and 49 deletions

View File

@ -1,4 +1,6 @@
cmake_minimum_required(VERSION 3.5.1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
execute_process(
COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
@ -7,7 +9,7 @@ execute_process(
)
set(EXTERNAL_LIBS "${CMAKE_SOURCE_DIR}/local")
set(EXTERNAL_LIBS "${CMAKE_SOURCE_DIR}/local/${ARCH_TRIPLET}")
set(THIRD_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
set(LIBGPGERROR_PATH "${THIRD_PATH}/libgpg-error")
set(LIBASSUAN_PATH "${THIRD_PATH}/libassuan")

View File

@ -1,7 +1,9 @@
#!/bin/sh
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
cd $SCRIPTPATH && rm -rf build
git submodule update --init --recursive
for LIB in "gnupg" "gpgme" "libassuan" "libgpg-error"
do
echo $LIB