CMakeLists.txt 859 B

1234567891011121314151617181920
  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 "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
  13. SET_TARGET_PROPERTIES(vsteffect PROPERTIES COMPILE_FLAGS "-Wno-attributes")
  14. TARGET_LINK_LIBRARIES(vsteffect -lvstbase)
  15. ADD_DEPENDENCIES(vsteffect vstbase)
  16. ENDIF(LMMS_SUPPORT_VST)