amuse/VST/CMakeLists.txt

19 lines
995 B
CMake
Raw Permalink Normal View History

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
AudioGroupFilePresenter.hpp AudioGroupFilePresenter.cpp
2016-06-11 00:47:02 +00:00
${VST2_DIR}/vstplugmain.cpp
${VST2_DIR}/audioeffect.cpp
${VST2_DIR}/audioeffectx.cpp
FileOpenDialog.hpp FileOpenDialog.cpp)
2018-12-20 03:45:26 +00:00
target_link_libraries(amuse-vst amuse boo soxr ${ZLIB_LIBRARIES} lzokay Winmm soxr
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()