split up the cmakelist by target (#3661)

* split up the cmakelist by target

* new target for the flysky-i6

* organization per @bsongis suggestion
This commit is contained in:
Nathan
2016-07-24 06:55:58 +02:00
committed by Bertrand Songis
parent 0ad015f3e7
commit e25db7e9e0
18 changed files with 1621 additions and 645 deletions
Executable
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
set -o nounset # exit if trying to use an uninitialized var
#set -o errexit # exit if any program fails
set -o pipefail # exit if any program in a pipeline fails, also
set -x # debug mode
TARGETS=(
9X
GRUVIN9X
HORUS
I6
MEGA2560
SKY9X
TARANIS
)
for target in "${TARGETS[@]}"
do
echo building $target
mkdir build-${target}
pushd build-${target}
cmake -DPCB=${target} -DGVARS=YES -DLUA=YES -DDEBUG=YES -DCMAKE_BUILD_TYPE=Debug ../
make
popd
done