mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
Debian package build: re-integrated SDRDaemonFEC
This commit is contained in:
parent
48eb776de9
commit
368e9d2595
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,4 +15,5 @@ debian/sdrangel/*
|
||||
debian/sdrangel.substvars
|
||||
debian/files
|
||||
debian/sdrangel.debhelper.log
|
||||
debian/debhelper-build-stamp
|
||||
obj-x86_64-linux-gnu/*
|
||||
|
@ -1,18 +1,16 @@
|
||||
project(cm256cc)
|
||||
|
||||
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11" )
|
||||
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11" )
|
||||
add_definitions(-DNO_RESTRICT)
|
||||
|
||||
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
|
||||
message( STATUS "Architecture: ${ARCHITECTURE}" )
|
||||
message( STATUS "CM256cc: Architecture: ${ARCHITECTURE}" )
|
||||
|
||||
if(${ARCHITECTURE} MATCHES "x86_64|AMD64|x86")
|
||||
SET(USE_SIMD "SSSE3" CACHE STRING "Use SIMD SSSE3 instructions")
|
||||
SET(USE_SIMD "SSSE3")
|
||||
elseif(${ARCHITECTURE} MATCHES "armv7l")
|
||||
SET(USE_SIMD "NEON" CACHE STRING "Use SIMD NEON instructions")
|
||||
SET(USE_SIMD "NEON")
|
||||
endif()
|
||||
|
||||
message( STATUS "CM256cc: use SIMD: ${USE_SIMD}" )
|
||||
|
||||
if(USE_SIMD MATCHES SSSE3)
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
||||
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mssse3" )
|
||||
@ -35,7 +33,7 @@ elseif(USE_SIMD MATCHES NEON)
|
||||
add_definitions(-DUSE_NEON)
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "Unsupported architecture")
|
||||
message(STATUS "CM256cc: Unsupported architecture")
|
||||
return()
|
||||
endif()
|
||||
|
||||
@ -61,7 +59,4 @@ add_library(cm256cc SHARED
|
||||
${cm256cc_SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(cm256cc
|
||||
)
|
||||
|
||||
install(TARGETS cm256cc DESTINATION lib)
|
||||
|
@ -53,6 +53,7 @@ if(CM256CC_FOUND)
|
||||
endif(CM256CC_FOUND)
|
||||
|
||||
if (BUILD_DEBIAN)
|
||||
add_subdirectory(sdrdaemonfec)
|
||||
add_subdirectory(airspy)
|
||||
add_subdirectory(hackrf)
|
||||
add_subdirectory(rtlsdr)
|
||||
|
Loading…
Reference in New Issue
Block a user