Skip to content

Commit 2fcba36

Browse files
committed
Change name to Spectra
1 parent d48eb49 commit 2fcba36

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
cmake_minimum_required(VERSION 3.0)
33

44
# project name
5-
project(SPECTRUM LANGUAGES C VERSION 0.1)
5+
project(SPECTRA LANGUAGES C VERSION 0.1)
66

77
# set compiler flags, mainly optimization
88
set(CMAKE_C_FLAGS "-O3 -ffast-math -Wall -std=c99")
99

1010
# 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)
1212

1313
# shortcut for headers directory
14-
set(SPECTRUM_INCLUDE_DIR ${SPECTRUM_SOURCE_DIR}/include)
14+
set(SPECTRA_INCLUDE_DIR ${SPECTRA_SOURCE_DIR}/include)
1515

1616
# load CMakeLists from other subdirectories
1717
add_subdirectory(src)

Doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ DOXYFILE_ENCODING = UTF-8
4141
# title of most generated pages and in a few other places.
4242
# The default value is: My Project.
4343

44-
PROJECT_NAME = "SPECTRUM"
44+
PROJECT_NAME = "Spectra"
4545

4646
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
4747
# could be handy for archiving the generated documentation or if some version

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# SPECTRUM
1+
# Spectra
22
A C library for spectral estimation and signal processing.
33

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
55
in scientific programming to perform spectral estimation and other operations
66
such as spectrum sensing.
77

@@ -79,7 +79,7 @@ cmake --build build --target <target_name>
7979
```
8080

8181
The available target names are:
82-
* `spectrum`: builds the shared library.
82+
* `spectra`: builds the shared library.
8383
* `examples`: builds all the examples (and also the library).
8484
* `detect_signal_aic_ed`: builds only the example (and the library).
8585

@@ -89,7 +89,7 @@ The available target names are:
8989
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
9090
Please set them or make sure they are set and tested correctly in the CMake files:
9191
KISSFFT_LIB
92-
linked by target "spectrum"
92+
linked by target "spectra"
9393
```
9494
1. Make sure that the library is installed or available in the `lib` project directory.
9595
2. CMake searches for `kissfft-float` and `kiss_fft_float` in the `lib` directory of the

examples/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# find include directories
2-
file(GLOB INCLUDE_SUBDIRS ${SPECTRUM_INCLUDE_DIR}/*)
2+
file(GLOB INCLUDE_SUBDIRS ${SPECTRA_INCLUDE_DIR}/*)
33
list(FILTER INCLUDE_SUBDIRS EXCLUDE REGEX ".h$")
44

55
# add executables
66
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})
99

1010
# add custom target to build all the examples
1111
add_custom_target(examples)

src/CMakeLists.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# set sources
2-
file(GLOB_RECURSE SPECTRUM_SOURCES "*.c")
2+
file(GLOB_RECURSE SPECTRA_SOURCES "*.c")
33

44
# set libraries
5-
set(SPECTRUM_LIBS m ${KISSFFT_LIB} gsl gslcblas)
5+
set(SPECTRA_LIBS m ${KISSFFT_LIB} gsl gslcblas)
66

77
# find include directories
8-
file(GLOB INCLUDE_SUBDIRS ${SPECTRUM_INCLUDE_DIR}/*)
8+
file(GLOB INCLUDE_SUBDIRS ${SPECTRA_INCLUDE_DIR}/*)
99
list(FILTER INCLUDE_SUBDIRS EXCLUDE REGEX ".h$")
1010

1111
# 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})

0 commit comments

Comments
 (0)