Wakusei/BuildStartProject

Support for CMake projects

Opened this issue · 1 comments

Hi, do you know if it would be possible to add support for this in CMake projects? I mean the Open Folder on a folder that contains a CMakeLists.txt. When I do this, and set a startup project in the CMake Targets View, BuildStartupProject doesn't work. If I put it on a toolbar, it remains greyed out as an option.

I'm not sure what you're talking about with the Open Folder thing, but assuming you're using the CMakePredefinedTargets I tracked down a solution that works.

image

That checkbox needs to be enabled. Enabling it yourself works until you have to reconfigure with cmake.

You can set a cmake flag to enable the build upon configuration.

set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) https://cmake.org/cmake/help/latest/variable/CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD.html

Now that INSTALL is in the default build, you can set it as the startup project and it should just work with this bauildstartupproject hotkey.