CMSIS-DSP: Change to cmake to more easily build wrappers

pull/19/head
Christophe Favergeon 6 years ago
parent b8fbe472b0
commit 1f87fd50c9

@ -2,9 +2,14 @@ cmake_minimum_required (VERSION 3.6)
cmake_policy(SET CMP0077 NEW)
project(CMSISDSP)
# DSP Sources
SET(DSP ${ROOT}/CMSIS/DSP)
list(APPEND CMAKE_MODULE_PATH ${DSP}/Source)
list(APPEND CMAKE_MODULE_PATH ${DSP})
include(config)
# Needed to find the config modules
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/..)
option(NEON "Neon acceleration" OFF)
@ -141,10 +146,7 @@ option(DCT4_Q15_8192 "dct4 q15 8192" OFF)
#
###########################
# DSP Sources
SET(DSP ${ROOT}/CMSIS/DSP)
list(APPEND CMAKE_MODULE_PATH ${DSP}/Source)
add_library(CMSISDSP INTERFACE)

@ -110,6 +110,10 @@ target_sources(CMSISDSPTransform PRIVATE arm_cfft_q31.c)
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_q31.c)
endif()
# For scipy or or wrappers
if (WRAPPER)
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix2_init_f32.c)
endif()
### Includes
target_include_directories(CMSISDSPTransform PUBLIC "${DSP}/Include")

@ -5,4 +5,9 @@ endif()
if (GCC)
include(Toolchain/GCC)
endif()
if (MSVC)
function(compilerSpecificCompileOptions PROJECTNAME ROOT)
endfunction()
endif()
Loading…
Cancel
Save