2019-11-23 19:10:37 +01:00
|
|
|
###############################
|
|
|
|
|
# Test application
|
|
|
|
|
|
|
|
|
|
project(sfizz)
|
|
|
|
|
|
|
|
|
|
set(SFIZZ_TEST_SOURCES
|
|
|
|
|
RegionT.cpp
|
2019-12-18 10:24:01 +01:00
|
|
|
ParsingT.cpp
|
2019-11-23 19:10:37 +01:00
|
|
|
HelpersT.cpp
|
|
|
|
|
HelpersT.cpp
|
|
|
|
|
AudioBufferT.cpp
|
2019-12-28 23:01:45 +01:00
|
|
|
EGDescriptionT.cpp
|
2019-11-23 19:10:37 +01:00
|
|
|
RangeT.cpp
|
|
|
|
|
OpcodeT.cpp
|
|
|
|
|
BufferT.cpp
|
|
|
|
|
SIMDHelpersT.cpp
|
|
|
|
|
FilesT.cpp
|
2019-12-15 02:05:53 +01:00
|
|
|
MidiStateT.cpp
|
2019-11-23 19:10:37 +01:00
|
|
|
OnePoleFilterT.cpp
|
|
|
|
|
RegionActivationT.cpp
|
2019-11-30 14:50:57 +01:00
|
|
|
RegionValueComputationsT.cpp
|
2019-11-23 19:10:37 +01:00
|
|
|
ADSREnvelopeT.cpp
|
2019-12-13 01:55:24 +01:00
|
|
|
EventEnvelopesT.cpp
|
2019-11-23 19:10:37 +01:00
|
|
|
MainT.cpp
|
2019-11-30 15:40:13 +01:00
|
|
|
SynthT.cpp
|
2019-11-23 19:10:37 +01:00
|
|
|
RegionTriggersT.cpp
|
2020-02-13 07:37:06 +01:00
|
|
|
FloatHelpersT.cpp
|
2019-11-23 19:10:37 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_executable(sfizz_tests ${SFIZZ_TEST_SOURCES})
|
2020-01-19 10:51:21 +01:00
|
|
|
target_link_libraries(sfizz_tests PRIVATE sfizz::sfizz)
|
2020-01-19 09:51:43 +01:00
|
|
|
sfizz_enable_lto_if_needed(sfizz_tests)
|
2020-01-18 17:35:27 +01:00
|
|
|
# target_link_libraries(sfizz_tests PRIVATE absl::strings absl::str_format absl::flat_hash_map cnpy absl::span absl::algorithm)
|
2019-11-23 19:10:37 +01:00
|
|
|
|
2020-02-07 12:44:12 +01:00
|
|
|
find_package(PkgConfig)
|
|
|
|
|
if(PKGCONFIG_FOUND)
|
2020-02-16 18:22:49 +01:00
|
|
|
pkg_check_modules(JACK "jack")
|
2020-02-07 12:44:12 +01:00
|
|
|
endif()
|
|
|
|
|
find_package(Qt5 COMPONENTS Widgets)
|
|
|
|
|
|
|
|
|
|
if(JACK_FOUND AND TARGET Qt5::Widgets)
|
|
|
|
|
add_executable(sfizz_demo_filters DemoFilters.cpp)
|
|
|
|
|
target_include_directories(sfizz_demo_filters PRIVATE ${JACK_INCLUDE_DIRS})
|
|
|
|
|
target_link_libraries(sfizz_demo_filters PRIVATE sfizz::sfizz Qt5::Widgets ${JACK_LIBRARIES})
|
|
|
|
|
set_target_properties(sfizz_demo_filters PROPERTIES AUTOUIC ON)
|
2020-02-10 16:16:15 +01:00
|
|
|
|
|
|
|
|
add_executable(sfizz_demo_stereo DemoStereo.cpp)
|
|
|
|
|
target_include_directories(sfizz_demo_stereo PRIVATE ${JACK_INCLUDE_DIRS})
|
|
|
|
|
target_link_libraries(sfizz_demo_stereo PRIVATE sfizz::sfizz Qt5::Widgets ${JACK_LIBRARIES})
|
|
|
|
|
set_target_properties(sfizz_demo_stereo PROPERTIES AUTOUIC ON)
|
2020-02-07 12:44:12 +01:00
|
|
|
endif()
|
|
|
|
|
|
2020-02-16 18:22:49 +01:00
|
|
|
add_executable(eq_apply EQ.cpp)
|
|
|
|
|
target_link_libraries(eq_apply PRIVATE sfizz::sfizz)
|
|
|
|
|
|
|
|
|
|
add_executable(filter_apply Filter.cpp)
|
|
|
|
|
target_link_libraries(filter_apply PRIVATE sfizz::sfizz)
|
|
|
|
|
|
2020-03-03 13:11:31 +01:00
|
|
|
add_executable(sfizz_plot_curve PlotCurve.cpp)
|
|
|
|
|
target_link_libraries(sfizz_plot_curve PRIVATE sfizz::sfizz)
|
2020-02-16 18:22:49 +01:00
|
|
|
|
2019-11-30 14:50:57 +01:00
|
|
|
file(COPY "." DESTINATION ${CMAKE_BINARY_DIR}/tests)
|