summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..ad0e151
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,51 @@
+cmake_minimum_required(VERSION 2.6)
+project(simpl)
+
+set(source_files src/simpl/base.cpp
+ src/simpl/peak_detection.cpp
+ src/simpl/partial_tracking.cpp
+ src/simpl/synthesis.cpp
+ src/simpl/residual.cpp
+ src/sms/OOURA.c
+ src/sms/OOURA.h
+ src/sms/SFMT
+ src/sms/SFMT.c
+ src/sms/SFMT.h
+ src/sms/analysis.c
+ src/sms/cepstrum.c
+ src/sms/fileIO.c
+ src/sms/filters.c
+ src/sms/fixTracks.c
+ src/sms/harmDetection.c
+ src/sms/modify.c
+ src/sms/peakContinuation.c
+ src/sms/peakDetection.c
+ src/sms/residual.c
+ src//sms/sineSynth.c
+ src/sms/sms.c
+ src/sms/sms.h
+ src/sms/soundIO.c
+ src/sms/spectralApprox.c
+ src/sms/spectrum.c
+ src/sms/stocAnalysis.c
+ src/sms/synthesis.c
+ src/sms/tables.c
+ src/sms/transforms.c
+ src/sms/windows.c
+)
+
+set(include_files src/simpl/simpl.h
+ src/simpl/base.h
+ src/simpl/peak_detection.h
+ src/simpl/partial_tracking.h
+ src/simpl/synthesis.h
+ src/simpl/residual.h
+ src/sms/sms.h
+)
+
+include_directories(src/simpl src/sms)
+add_library(simpl SHARED ${source_files})
+target_link_libraries(simpl m fftw3 gsl gslcblas)
+
+install(TARGETS simpl LIBRARY DESTINATION lib)
+install(FILES ${include_files} DESTINATION include/simpl)