sfizz/tests/CMakeLists.txt

41 lines
1,001 B
Text
Raw Normal View History

2019-08-30 15:28:30 +02:00
###############################
# Test application
project(sfizz)
set(SFIZZ_TEST_SOURCES
RegionT.cpp
2019-08-30 15:28:30 +02:00
RegexT.cpp
HelpersT.cpp
2019-09-06 22:16:25 +02:00
HelpersT.cpp
AudioBufferT.cpp
2019-08-30 15:28:30 +02:00
RangeT.cpp
OpcodeT.cpp
BufferT.cpp
StereoBufferT.cpp
SIMDHelpersT.cpp
FilesT.cpp
OnePoleFilterT.cpp
RegionActivationT.cpp
RegionCrossfadesT.cpp
ADSREnvelopeT.cpp
LinearEnvelopeT.cpp
MainT.cpp
RegionTriggersT.cpp
)
find_package(ZLIB REQUIRED)
add_library(cnpy cnpy.cpp)
target_link_libraries(cnpy PRIVATE ZLIB::ZLIB)
2019-08-30 15:28:30 +02:00
add_executable(sfizz_tests ${SFIZZ_TEST_SOURCES})
target_link_libraries(sfizz_tests PRIVATE sfizz)
# Per OS properties
if(UNIX)
target_link_libraries(sfizz_tests PRIVATE stdc++fs atomic)
endif(UNIX)
target_link_libraries(sfizz_tests PRIVATE absl::strings absl::str_format absl::flat_hash_map sndfile cnpy absl::span absl::algorithm)
2019-08-30 15:28:30 +02:00
target_include_directories(sfizz_tests SYSTEM PRIVATE sources)
file(COPY "." DESTINATION ${CMAKE_BINARY_DIR}/tests)