@@ -26,23 +26,42 @@ if(TARGET Qt5::Widgets)
26
26
set_target_properties (sfizz_demo_stretch_tuning PROPERTIES AUTOUIC ON )
27
27
endif ()
28
28
29
- add_executable (eq_apply EQ.cpp)
30
- target_link_libraries (eq_apply PRIVATE sfizz::internal sfizz::sndfile sfizz::cxxopts sfizz::filesystem)
31
-
32
- add_executable (filter_apply Filter .cpp)
33
- target_link_libraries (filter_apply PRIVATE sfizz::internal sfizz::sndfile sfizz::cxxopts sfizz::filesystem)
29
+ if (SFIZZ_USE_SNDFILE)
30
+ add_executable (eq_apply EQ.cpp)
31
+ target_link_libraries (eq_apply PRIVATE
32
+ sfizz::cxxopts
33
+ sfizz::filesystem
34
+ sfizz::internal
35
+ sfizz::sndfile
36
+ )
37
+ add_executable (filter_apply Filter .cpp)
38
+ target_link_libraries (filter_apply PRIVATE
39
+ sfizz::cxxopts
40
+ sfizz::filesystem
41
+ sfizz::internal
42
+ sfizz::sndfile
43
+ )
44
+ endif ()
34
45
35
46
add_executable (sfizz_plot_curve PlotCurve.cpp)
36
47
target_link_libraries (sfizz_plot_curve PRIVATE sfizz::internal )
37
48
38
49
add_executable (sfizz_plot_wavetables PlotWavetables.cpp)
39
50
target_link_libraries (sfizz_plot_wavetables PRIVATE sfizz::internal )
40
51
41
- add_executable (sfizz_plot_lfo PlotLFO.cpp)
42
- target_link_libraries (sfizz_plot_lfo PRIVATE sfizz::internal sfizz::sndfile sfizz::cxxopts)
43
-
44
- add_executable (sfizz_file_instrument FileInstrument.cpp)
45
- target_link_libraries (sfizz_file_instrument PRIVATE sfizz::internal sfizz::sndfile)
52
+ if (SFIZZ_USE_SNDFILE)
53
+ add_executable (sfizz_plot_lfo PlotLFO.cpp)
54
+ target_link_libraries (sfizz_plot_lfo PRIVATE
55
+ sfizz::cxxopts
56
+ sfizz::internal
57
+ sfizz::sndfile
58
+ )
59
+ add_executable (sfizz_file_instrument FileInstrument.cpp)
60
+ target_link_libraries (sfizz_file_instrument PRIVATE
61
+ sfizz::internal
62
+ sfizz::sndfile
63
+ )
64
+ endif ()
46
65
47
66
add_executable (sfizz_file_wavetable FileWavetable.cpp)
48
67
target_link_libraries (sfizz_file_wavetable PRIVATE sfizz::internal )
0 commit comments