fixing cmake scripts

master
Andre Puschmann 8 years ago
parent 970e1639c8
commit 5d5b847551

@ -53,6 +53,28 @@ configure_file(
option(StaticMKL "StaticMKL" OFF) option(StaticMKL "StaticMKL" OFF)
option(DisableBladeRF "DisableBladeRF" OFF) option(DisableBladeRF "DisableBladeRF" OFF)
########################################################################
# Find dependencies
########################################################################
find_package(Polarssl)
if (POLARSSL_FOUND)
set(POLAR_INCLUDE_DIRS "${POLARSSL_INCLUDE_DIRS}")
set(POLAR_LIBRARIES "${POLARSSL_LIBRARIES}")
add_definitions(-DHAVE_POLARSSL)
else(POLARSSL_FOUND)
find_package(MbedTLS)
if (MBEDTLS_FOUND)
set(POLAR_INCLUDE_DIRS "${MBEDTLS_INCLUDE_DIRS}")
set(POLAR_LIBRARIES "${MBEDTLS_LIBRARIES}")
add_definitions(-DHAVE_MBEDTLS)
else(MBEDTLS_FOUND)
message(FATAL_ERROR "Either polarssl or mbedtls is required to compile srsUE")
endif (MBEDTLS_FOUND)
endif(POLARSSL_FOUND)
######################################################################## ########################################################################
# Install Dirs # Install Dirs
######################################################################## ########################################################################
@ -182,7 +204,12 @@ message(STATUS "Building for version: ${VERSION}")
include_directories(${PROJECT_BINARY_DIR}/srslte/include/) include_directories(${PROJECT_BINARY_DIR}/srslte/include/)
include_directories(${PROJECT_SOURCE_DIR}/srslte/include/) include_directories(${PROJECT_SOURCE_DIR}/srslte/include/)
# Includes needed by all code previously resided in srsUE
include_directories(${PROJECT_SOURCE_DIR}/srslte/include/srslte)
include_directories(${PROJECT_SOURCE_DIR}/liblte/hdr)
######################################################################## ########################################################################
# Add the subdirectories # Add the subdirectories
######################################################################## ########################################################################
add_subdirectory(liblte)
add_subdirectory(srslte) add_subdirectory(srslte)

@ -116,3 +116,4 @@ endif(VOLK_FOUND)
add_subdirectory(lib) add_subdirectory(lib)
add_subdirectory(include) add_subdirectory(include)
add_subdirectory(examples) add_subdirectory(examples)
add_subdirectory(test)

@ -18,6 +18,7 @@
# and at http://www.gnu.org/licenses/. # and at http://www.gnu.org/licenses/.
# #
add_library(srslte_version OBJECT version.c) add_subdirectory(common)
add_subdirectory(phy) add_subdirectory(phy)
add_subdirectory(radio)
add_subdirectory(upper)

@ -38,7 +38,7 @@ add_subdirectory(enb)
set(srslte_srcs $<TARGET_OBJECTS:srslte_agc> set(srslte_srcs $<TARGET_OBJECTS:srslte_agc>
$<TARGET_OBJECTS:srslte_ch_estimation> $<TARGET_OBJECTS:srslte_ch_estimation>
$<TARGET_OBJECTS:srslte_common> $<TARGET_OBJECTS:srslte_phy_common>
$<TARGET_OBJECTS:srslte_fec> $<TARGET_OBJECTS:srslte_fec>
$<TARGET_OBJECTS:srslte_mimo> $<TARGET_OBJECTS:srslte_mimo>
$<TARGET_OBJECTS:srslte_phch> $<TARGET_OBJECTS:srslte_phch>

@ -0,0 +1,21 @@
# Copyright 2015 Software Radio Systems Limited
#
# This file is part of srsUE
#
# srsUE is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# srsUE is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# A copy of the GNU Affero General Public License can be found in
# the LICENSE file in the top-level directory of this distribution
# and at http://www.gnu.org/licenses/.
#
add_subdirectory(common)
add_subdirectory(upper)
Loading…
Cancel
Save