From: <for...@li...> - 2011-04-05 06:25:39
|
details: http://fordiac.hg.sourceforge.net/hgweb/fordiac/forte/rev/2679c2c6f9fd changeset: 427:2679c2c6f9fd user: Ingo Hegny date: Tue Apr 05 08:24:59 2011 +0200 description: updated setup-script for posix-platform to use cmake diffstat: setup_posix.sh | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) diffs (36 lines): diff -r 145bfb8c8cba -r 2679c2c6f9fd setup_posix.sh --- a/setup_posix.sh Tue Apr 05 08:17:18 2011 +0200 +++ b/setup_posix.sh Tue Apr 05 08:24:59 2011 +0200 @@ -1,6 +1,29 @@ #!/bin/bash echo "----------------------------------------------------------------------------" -echo "BUILD-SYSTEM was switched from automake to cmake" +echo " Automatically set up development environment for POSIX-platform" echo "----------------------------------------------------------------------------" echo "" -echo "run cmake or cmake-gui to set up development environment" \ No newline at end of file +echo " Includes 64bit-datatypes, float-datatypes, Ethernet-Interface," +echo " ASN1-encoding, tests, ..." +echo "" + +export forte_bin_dir="bin/posix" + +if [ ! -d "$forte_bin_dir" ]; then + mkdir -p "$forte_bin_dir" +fi + +if [ -d "$forte_bin_dir" ]; then + + echo "For building forte go to $forte_bin_dir and execute \"make\"" + echo "forte can be found at ${forte_bin_dir}/src" + echo "forte_tests can be found at ${forte_bin_dir}/tests" + + + cd "./$forte_bin_dir" + + cmake -G "Unix Makefiles" -DFORTE_COM_ETH=ON -DFORTE_COM_FBDK=ON -DFORTE_TESTS_INC_DIRS="/cygdrive/d/Projects/boost_1_46_1" -DFORTE_TESTS_LINK_DIRS="/cygdrive/d/Projects/boost_1_46_1/stage/lib" -DFORTE_TESTS=ON -DFORTE_ARCHITECTURE_POSIX=ON ../../ +else + echo "unable to create ${forte_bin_dir}" + exit 1 +fi |