2016-06-11 00:47:02 +00:00
|
|
|
set(VST3_SDK_ROOT "" CACHE PATH "Path to VST 3.x SDK directory containing 'public.sdk' and 'plugininterfaces'")
|
|
|
|
if (WIN32 AND (EXISTS ${VST3_SDK_ROOT}))
|
|
|
|
message(STATUS "Found VST SDK; building plugin")
|
|
|
|
include_directories(${VST3_SDK_ROOT} ${VST3_SDK_ROOT}/public.sdk/source/vst2.x)
|
|
|
|
set(VST2_DIR ${VST3_SDK_ROOT}/public.sdk/source/vst2.x)
|
|
|
|
add_definitions(${BOO_SYS_DEFINES})
|
2016-06-09 21:33:26 +00:00
|
|
|
add_library(amuse-vst SHARED
|
|
|
|
VSTBackend.hpp VSTBackend.cpp
|
2016-06-11 00:47:02 +00:00
|
|
|
VSTEditor.hpp VSTEditor.cpp
|
2016-06-12 04:52:40 +00:00
|
|
|
AudioGroupFilePresenter.hpp AudioGroupFilePresenter.cpp
|
2016-06-11 00:47:02 +00:00
|
|
|
${VST2_DIR}/vstplugmain.cpp
|
|
|
|
${VST2_DIR}/audioeffect.cpp
|
2016-06-12 04:52:40 +00:00
|
|
|
${VST2_DIR}/audioeffectx.cpp
|
|
|
|
FileOpenDialog.hpp FileOpenDialog.cpp)
|
2016-06-15 00:36:25 +00:00
|
|
|
target_link_libraries(amuse-vst amuse boo soxr ${ZLIB_LIBRARIES} Winmm soxr
|
2016-06-12 04:52:40 +00:00
|
|
|
Msimg32 Shlwapi logvisor athena-core)
|
2016-06-11 00:47:02 +00:00
|
|
|
set_target_properties(amuse-vst PROPERTIES LINK_FLAGS "/EXPORT:VSTPluginMain")
|
2016-06-09 21:33:26 +00:00
|
|
|
endif()
|