CMakeLists.txt
 1  cmake_minimum_required (VERSION 3.14)
 2  project (arm_convolution_example VERSION 0.1)
 3  
 4  
 5  # Needed to include the configBoot module
 6  # Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake)
 7  set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..)
 8  set(DSP ${ROOT}/CMSIS/DSP)
 9  
10  # Add DSP folder to module path
11  list(APPEND CMAKE_MODULE_PATH ${DSP})
12  
13  ################################### 
14  #
15  # LIBRARIES
16  #
17  ###################################
18  
19  ########### 
20  #
21  # CMSIS DSP
22  #
23  
24  add_subdirectory(../../../Source bin_dsp)
25  
26  
27  ################################### 
28  #
29  # TEST APPLICATION
30  #
31  ###################################
32  
33  
34  add_executable(arm_convolution_example)
35  
36  
37  include(config)
38  configApp(arm_convolution_example ${ROOT})
39  
40  target_sources(arm_convolution_example PRIVATE arm_convolution_example_f32.c math_helper.c)
41  
42  ### Sources and libs
43  
44  target_link_libraries(arm_convolution_example PRIVATE CMSISDSP)
45