CMakeLists.txt 715 B

123456789101112131415161718
  1. IF(LMMS_SUPPORT_VST)
  2. INCLUDE(BuildPlugin)
  3. INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../vst_base")
  4. LINK_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}/..")
  5. IF(LMMS_BUILD_LINUX)
  6. LINK_LIBRARIES(-Wl,--enable-new-dtags)
  7. SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
  8. SET(CMAKE_INSTALL_RPATH "$ORIGIN")
  9. ELSE()
  10. SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PLUGIN_DIR}")
  11. ENDIF()
  12. BUILD_PLUGIN(vsteffect VstEffect.cpp VstEffectControls.cpp VstEffectControlDialog.cpp VstSubPluginFeatures.cpp VstEffect.h VstEffectControls.h VstEffectControlDialog.h VstSubPluginFeatures.h MOCFILES VstEffectControlDialog.h VstEffectControls.h EMBEDDED_RESOURCES *.png)
  13. TARGET_LINK_LIBRARIES(vsteffect vstbase)
  14. ENDIF(LMMS_SUPPORT_VST)