vst3sdk icon indicating copy to clipboard operation
vst3sdk copied to clipboard

When vst3sdk is a submodule, example plugins are not built - a switch to choose would be very useful

Open IliasBergstrom opened this issue 2 years ago • 1 comments

We include vst3sdk as a submodule in our project, but want to also build the example plugins - those are very convenient to use in our subsequent unit tests, examples in the repo, etc.

BUT, the below in your CMakeLists.txt disallows that:

if(NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_LIST_DIR}) message(STATUS "[SMTG] Disable all VST3 samples") set(SMTG_ADD_VST3_PLUGINS_SAMPLES OFF) set(SMTG_ADD_VST3_HOSTING_SAMPLES OFF) set(SMTG_ADD_MYPLUGINS_SRC_PATH OFF) else() set(SMTG_ADD_MYPLUGINS_SRC_PATH ON) endif()

It would be fantastic to have an option we could set in the enclosing project's CMakeLists.txt, where we can turn this circumvention off, and still get the plugins to build!

Thank you.

IliasBergstrom avatar Oct 06 '22 15:10 IliasBergstrom

In addition, it'd also be very useful if the VST3 example plugins, were not placed in VST3/Debug/, or VST3/Release/, since that complicates accessing them automatically with paths relative to the main build location.

Since the containing build is either Release or Debug anyway, the placement in explicit build-type subfolders is superfluous, and just VST3/ would suffice, no?

IliasBergstrom avatar Oct 10 '22 12:10 IliasBergstrom