File tree 5 files changed +17
-17
lines changed
5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 2
2
cmake_minimum_required (VERSION 3.0)
3
3
4
4
# project name
5
- project (SPECTRUM LANGUAGES C VERSION 0.1)
5
+ project (SPECTRA LANGUAGES C VERSION 0.1)
6
6
7
7
# set compiler flags, mainly optimization
8
8
set (CMAKE_C_FLAGS "-O3 -ffast-math -Wall -std=c99" )
9
9
10
10
# find kissfft library
11
- find_library (KISSFFT_LIB kissfft-float kiss_fft_float HINTS ${SPECTRUM_SOURCE_DIR } /lib)
11
+ find_library (KISSFFT_LIB kissfft-float kiss_fft_float HINTS ${SPECTRA_SOURCE_DIR } /lib)
12
12
13
13
# shortcut for headers directory
14
- set (SPECTRUM_INCLUDE_DIR ${SPECTRUM_SOURCE_DIR } /include )
14
+ set (SPECTRA_INCLUDE_DIR ${SPECTRA_SOURCE_DIR } /include )
15
15
16
16
# load CMakeLists from other subdirectories
17
17
add_subdirectory (src)
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ DOXYFILE_ENCODING = UTF-8
41
41
# title of most generated pages and in a few other places.
42
42
# The default value is: My Project.
43
43
44
- PROJECT_NAME = "SPECTRUM "
44
+ PROJECT_NAME = "Spectra "
45
45
46
46
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
47
47
# could be handy for archiving the generated documentation or if some version
Original file line number Diff line number Diff line change 1
- # SPECTRUM
1
+ # Spectra
2
2
A C library for spectral estimation and signal processing.
3
3
4
- The main goal of SPECTRUM is to provide a C library that can be easily used
4
+ The main goal of Spectra is to provide a C library that can be easily used
5
5
in scientific programming to perform spectral estimation and other operations
6
6
such as spectrum sensing.
7
7
@@ -79,7 +79,7 @@ cmake --build build --target <target_name>
79
79
```
80
80
81
81
The available target names are:
82
- * ` spectrum ` : builds the shared library.
82
+ * ` spectra ` : builds the shared library.
83
83
* ` examples ` : builds all the examples (and also the library).
84
84
* ` detect_signal_aic_ed ` : builds only the example (and the library).
85
85
@@ -89,7 +89,7 @@ The available target names are:
89
89
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
90
90
Please set them or make sure they are set and tested correctly in the CMake files:
91
91
KISSFFT_LIB
92
- linked by target "spectrum "
92
+ linked by target "spectra "
93
93
```
94
94
1 . Make sure that the library is installed or available in the ` lib ` project directory.
95
95
2 . CMake searches for ` kissfft-float ` and ` kiss_fft_float ` in the ` lib ` directory of the
Original file line number Diff line number Diff line change 1
1
# find include directories
2
- file (GLOB INCLUDE_SUBDIRS ${SPECTRUM_INCLUDE_DIR } /*)
2
+ file (GLOB INCLUDE_SUBDIRS ${SPECTRA_INCLUDE_DIR } /*)
3
3
list (FILTER INCLUDE_SUBDIRS EXCLUDE REGEX ".h$" )
4
4
5
5
# add executables
6
6
add_executable (detect_signal_aic_ed detect_signal_aic_ed.c)
7
- target_link_libraries (detect_signal_aic_ed spectrum )
8
- target_include_directories (detect_signal_aic_ed PRIVATE ${SPECTRUM_INCLUDE_DIR } ${INCLUDE_SUBDIRS} )
7
+ target_link_libraries (detect_signal_aic_ed spectra )
8
+ target_include_directories (detect_signal_aic_ed PRIVATE ${SPECTRA_INCLUDE_DIR } ${INCLUDE_SUBDIRS} )
9
9
10
10
# add custom target to build all the examples
11
11
add_custom_target (examples)
Original file line number Diff line number Diff line change 1
1
# set sources
2
- file (GLOB_RECURSE SPECTRUM_SOURCES "*.c" )
2
+ file (GLOB_RECURSE SPECTRA_SOURCES "*.c" )
3
3
4
4
# set libraries
5
- set (SPECTRUM_LIBS m ${KISSFFT_LIB} gsl gslcblas)
5
+ set (SPECTRA_LIBS m ${KISSFFT_LIB} gsl gslcblas)
6
6
7
7
# find include directories
8
- file (GLOB INCLUDE_SUBDIRS ${SPECTRUM_INCLUDE_DIR } /*)
8
+ file (GLOB INCLUDE_SUBDIRS ${SPECTRA_INCLUDE_DIR } /*)
9
9
list (FILTER INCLUDE_SUBDIRS EXCLUDE REGEX ".h$" )
10
10
11
11
# add the library
12
- add_library (spectrum SHARED ${SPECTRUM_SOURCES } )
13
- target_link_libraries (spectrum ${SPECTRUM_LIBS } )
14
- target_include_directories (spectrum PRIVATE ${SPECTRUM_INCLUDE_DIR } ${INCLUDE_SUBDIRS} )
12
+ add_library (spectra SHARED ${SPECTRA_SOURCES } )
13
+ target_link_libraries (spectra ${SPECTRA_LIBS } )
14
+ target_include_directories (spectra PRIVATE ${SPECTRA_INCLUDE_DIR } ${INCLUDE_SUBDIRS} )
You can’t perform that action at this time.
0 commit comments