Setting up a build dependency without using a reference?

Right click the root node in Solution Explorer -> Properties -> Project Dependencies. (VS 2008 users: this feature gets its own dialog box that’s directly accessible from the context menu.) The dependency graph is represented as an adjacency list of checkboxes. Each project you select will have its direct references checked & disabled [assuming you … Read more

How do I change the startup project of a Visual Studio solution via CMake?

CMake now supports this with versions 3.6 and higher through the VS_STARTUP_PROJECT directory property: cmake_minimum_required(VERSION 3.6) project(foo) # … add_executable(bar ${BAR_SOURCES}) set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT bar) This will set bar as the startup project for the foo.sln solution.