Commit a7149ddb authored by thomasl's avatar thomasl

Added cmake new build system

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6672 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 42e1998e
This diff is collapsed.
mkdir -p $1
cd $1
shift
asn1c -gen-PER -fcompound-names $* 2>&1 | grep -v -- '->' | grep -v '^Compiled' |grep -v sample
awk '
BEGIN {
print "#ifndef __ASN1_CONSTANTS_H__"
print "#define __ASN1_CONSTANTS_H__"
}
/INTEGER ::=/ {
gsub("INTEGER ::=","")
gsub("--","//")
gsub("-1","_minus_1")
gsub("-","_")
printf("#define %s\n",$0)
}
/::=.*INTEGER.*[(]/ {
nb_fields=split($0,val,"[:=().]+");
gsub("-","_",val[1]);
printf("#define min_val_%s %s\n",val[1],val[nb_fields-2]);
printf("#define max_val_%s %s\n",val[1],val[nb_fields-1]);
}
END {
print "#endif ";
} ' $1 > asn1_constants.h
cmake_minimum_required(VERSION 2.8)
include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)
cmake_minimum_required(VERSION 2.8)
set(RF_BOARD "USRP")
include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)
cmake_minimum_required(VERSION 2.8)
set(RRC_ASN1_VERSION "Rel8")
include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)
cmake_minimum_required(VERSION 2.8)
set(PHYSIM True)
set(RF_BOARD None)
set(XFORMS False)
set(DEBUG_PHY False)
set(MU_RECIEVER Flase)
set(RANDOM_BF False)
set(PBS_SIM False)
set(PERFECT_CE False)
include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment