Set startup project for Visual Studio

Minor convenience for Visual Studio users.

If CorsixTH is built, set it as the startup project for the top level
sln

Set CorsixTH as the startup project for the CorsixTH.sln
Set AnimView as the startup project for the AnimView.sln
This commit is contained in:
Stephen E. Baker
2021-11-27 11:07:47 -05:00
parent d0201f13cb
commit a3572952b7
3 changed files with 5 additions and 0 deletions

View File

@@ -98,3 +98,5 @@ else()
install(TARGETS AnimView RUNTIME DESTINATION AnimView)
install(FILES ../LICENSE.txt DESTINATION AnimView)
endif()
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT AnimView)

View File

@@ -132,6 +132,7 @@ add_subdirectory("libs")
if(BUILD_CORSIXTH)
message("Building CorsixTH")
add_subdirectory(CorsixTH)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT CorsixTH)
endif()
if(BUILD_ANIMVIEW)

View File

@@ -298,5 +298,7 @@ if(NOT USE_SOURCE_DATADIRS)
endif()
endif()
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT CorsixTH)
add_custom_target(windowsconfig ${LUA_PROGRAM_PATH} ${CMAKE_SOURCE_DIR}/scripts/generate_windows_config.lua
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})