#!/bin/bash
# Script for building IQRF IDE dummy application on Linux machine

project=iqrf_ide_dummy

#expected build dir structure
buildexp=build/Unix_Makefiles

currentdir=$PWD
builddir=./${buildexp}
LIB_DIRECTORY=${1:-../../..}

mkdir -p ${builddir}

#get path to iqrfd libs
iqrfd=../../daemon/${buildexp}
pushd ${iqrfd}
iqrfd=${PWD}
popd

#get path to cutils libs
cutils=../../libs/cutils/${buildexp}
pushd ${cutils}
cutils=${PWD}
popd

#launch cmake to generate build environment
pushd ${builddir}
pwd
cmake -G "Unix Makefiles" -Dcutils_DIR:PATH=${cutils} -Diqrfd_DIR:PATH=${iqrfd} ${currentdir}
popd

#build from generated build environment
cmake --build ${builddir}

#!/bin/bash
# Script for building IQRF IDE dummy application on Linux machine

project=iqrf_ide_dummy

#expected build dir structure
buildexp=build/Unix_Makefiles

currentdir=$PWD
builddir=./${buildexp}
LIB_DIRECTORY=${1:-../../..}

mkdir -p ${builddir}

#get path to iqrfd libs
iqrfd=../../daemon/${buildexp}
pushd ${iqrfd}
iqrfd=${PWD}
popd

#get path to cutils libs
cutils=${LIB_DIRECTORY}/cutils/${buildexp}
pushd ${cutils}
cutils=${PWD}
popd

#launch cmake to generate build environment
pushd ${builddir}
pwd
cmake -G "Unix Makefiles" -Dcutils_DIR:PATH=${cutils} -Diqrfd_DIR:PATH=${iqrfd} ${currentdir}
popd

#build from generated build environment
cmake --build ${builddir}

Fix location of a directory with external libraries for application iqrf_ide_dummy
Fix location of a directory with external libraries for application iqrf_ide_dummy

Signed-off-by: Roman3349 <6b7cbc66756660b4790b3af1ec1507653acaa035@centrum.cz>
