Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.8KB

  1. #for tests looking for files stored in the source dir
  2. add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
  3. CXXTEST_ADD_TEST(ControllerTest ControllerTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/ControllerTest.h)
  4. CXXTEST_ADD_TEST(EchoTest EchoTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/EchoTest.h)
  5. #CXXTEST_ADD_TEST(SampleTest SampleTest.h)
  6. CXXTEST_ADD_TEST(MicrotonalTest MicrotonalTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/MicrotonalTest.h)
  7. CXXTEST_ADD_TEST(XMLwrapperTest XMLwrapper.cpp ${CMAKE_CURRENT_SOURCE_DIR}/XMLwrapperTest.h)
  8. CXXTEST_ADD_TEST(ADnoteTest AdNoteTest.cpp
  9. ${CMAKE_CURRENT_SOURCE_DIR}/AdNoteTest.h)
  10. CXXTEST_ADD_TEST(SUBnoteTest SubNoteTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/SubNoteTest.h)
  11. CXXTEST_ADD_TEST(OscilGenTest OscilGenTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/OscilGenTest.h)
  12. CXXTEST_ADD_TEST(RandTest RandTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/RandTest.h)
  13. CXXTEST_ADD_TEST(PADnoteTest PadNoteTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/PadNoteTest.h)
  14. CXXTEST_ADD_TEST(PluginTest PluginTest.cpp ${CMAKE_CURRENT_SOURCE_DIR}/PluginTest.h)
  15. #Extra libraries added to make test and full compilation use the same library
  16. #links for quirky compilers
  17. set(test_lib zynaddsubfx_core ${ZLIB_LIBRARY} ${FFTW_LIBRARIES} ${MXML_LIBRARIES} pthread)
  18. message(STATUS "Linking tests with: ${test_lib}")
  19. target_link_libraries(ADnoteTest ${test_lib})
  20. target_link_libraries(SUBnoteTest ${test_lib})
  21. target_link_libraries(ControllerTest ${test_lib})
  22. target_link_libraries(EchoTest ${test_lib})
  23. target_link_libraries(MicrotonalTest ${test_lib})
  24. target_link_libraries(OscilGenTest ${test_lib})
  25. target_link_libraries(XMLwrapperTest ${test_lib})
  26. target_link_libraries(RandTest ${test_lib})
  27. target_link_libraries(PADnoteTest ${test_lib})
  28. target_link_libraries(PluginTest zynaddsubfx_core zynaddsubfx_nio
  29. ${OS_LIBRARIES} ${AUDIO_LIBRARIES})