Removed
Link Here
|
1 |
--- CMakeLists.txt.orig 2021-09-07 15:26:53 UTC |
2 |
+++ CMakeLists.txt |
3 |
@@ -6,8 +6,6 @@ include(GNUInstallDirs) |
4 |
if(MSVC) |
5 |
set(COMPILE_DEFINITIONS /O2 /fp:fast) |
6 |
set(COMPILE_OPTIONS ) |
7 |
-else() |
8 |
- set(COMPILE_OPTIONS -Ofast) |
9 |
endif() |
10 |
|
11 |
##################### |
12 |
@@ -59,7 +57,7 @@ else() |
13 |
target_compile_definitions(SoundTouch PRIVATE SOUNDTOUCH_FLOAT_SAMPLES) |
14 |
endif() |
15 |
|
16 |
-if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7.*|armv8.*)$") |
17 |
+if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7.*|armv8.*|aarch64.*)$") |
18 |
set(NEON_CPU ON) |
19 |
else() |
20 |
set(NEON_CPU OFF) |
21 |
@@ -68,9 +66,14 @@ endif() |
22 |
option(NEON "Use ARM Neon SIMD instructions if in ARM CPU" ON) |
23 |
if(${NEON} AND ${NEON_CPU}) |
24 |
target_compile_definitions(SoundTouch PRIVATE SOUNDTOUCH_USE_NEON) |
25 |
- target_compile_options(SoundTouch PRIVATE -mfpu=neon) |
26 |
endif() |
27 |
|
28 |
+find_package(OpenMP) |
29 |
+option(OPENMP "Use parallel multicore calculation through OpenMP" ON) |
30 |
+if(OPENMP AND OPENMP_FOUND) |
31 |
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") |
32 |
+endif() |
33 |
+ |
34 |
install( |
35 |
FILES |
36 |
include/BPMDetect.h |
37 |
@@ -105,6 +108,9 @@ if(SOUNDSTRETCH) |
38 |
target_compile_definitions(soundstretch PRIVATE ${COMPILE_DEFINITIONS}) |
39 |
target_compile_options(soundstretch PRIVATE ${COMPILE_OPTIONS}) |
40 |
target_link_libraries(soundstretch PRIVATE SoundTouch) |
41 |
+ if(INTEGER_SAMPLES) |
42 |
+ target_compile_definitions(soundstretch PRIVATE SOUNDTOUCH_INTEGER_SAMPLES) |
43 |
+ endif() |
44 |
|
45 |
install(TARGETS soundstretch |
46 |
DESTINATION bin |