steinbergmedia / vst3sdk

VST 3 Plug-In SDK
Other
1.6k stars 163 forks source link

Unknown CMake command "smtg_add_vst3plugin" #4

Closed ghost closed 7 years ago

ghost commented 7 years ago

Sample projects are not building in VS 2015, VS2017, Clion Cmake. Cmake error.

scheffle commented 7 years ago

Any output ? Did you used cmake as described in https://github.com/steinbergmedia/vst3sdk/wiki/Get-Started ?

ghost commented 7 years ago
 Microsoft (R) Build Engine version 4.7.2046.0
    [Microsoft .NET Framework, version 4.0.30319.42000]
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 8/15/2017 5:17:18 AM.
    Project "C:\VST_SDK\VST3_SDK\build\CMakeFiles\3.9.1\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\VST_SDK\VST3_SDK\build\CMakeFiles\3.9.1\VCTargetsPath.vcxproj(15,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\VST_SDK\VST3_SDK\build\CMakeFiles\3.9.1\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\VST_SDK\VST3_SDK\build\CMakeFiles\3.9.1\VCTargetsPath.vcxproj" (default target) (1) ->
      C:\VST_SDK\VST3_SDK\build\CMakeFiles\3.9.1\VCTargetsPath.vcxproj(15,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.37

  Exit code: 1
scheffle commented 7 years ago

How did you generate the Visual Studio project files ?

ghost commented 7 years ago

That error was from generating solution files. Now the build is success ! path variable for msbuild was for .net 4. Now changed that to VS2017 msbuild and generated VS2017 project solutions by using "cmake ../".