File tree Expand file tree Collapse file tree 3 files changed +64
-0
lines changed Expand file tree Collapse file tree 3 files changed +64
-0
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,22 @@ target_link_libraries(
3434 PUBLIC
3535 benchmark::benchmark
3636)
37+
38+ if (MSVC )
39+ # Group dependencies in Visual Studio
40+ set (THIRD_PARTY_TARGETS
41+ benchmark
42+ benchmark_main
43+ # Note that benchmark requires gtest
44+ gmock
45+ gmock_main
46+ gtest
47+ gtest_main
48+ )
49+ # Move all dependencies into a subfolder
50+ set_target_properties (${THIRD_PARTY_TARGETS}
51+ PROPERTIES
52+ EXCLUDE_FROM_ALL TRUE
53+ FOLDER "Dependencies"
54+ )
55+ endif ()
Original file line number Diff line number Diff line change @@ -145,3 +145,32 @@ target_link_libraries(inexor-vulkan-renderer
145145 volk::volk
146146 Vulkan::Headers
147147 VulkanMemoryAllocator)
148+
149+ if (MSVC )
150+ # Group dependencies in Visual Studio
151+ set (THIRD_PARTY_TARGETS
152+ glfw
153+ fmt
154+ glm
155+ imgui
156+ spdlog
157+ volk
158+ VulkanMemoryAllocator
159+ tinygltf
160+ toml11
161+ # Also those extra ones
162+ loader_example
163+ uninstall
164+ update_mappings
165+ Continuous
166+ Experimental
167+ Nightly
168+ NightlyMemoryCheck
169+ )
170+ # Move all dependencies into a subfolder
171+ set_target_properties (${THIRD_PARTY_TARGETS}
172+ PROPERTIES
173+ EXCLUDE_FROM_ALL TRUE
174+ FOLDER "Dependencies"
175+ )
176+ endif ()
Original file line number Diff line number Diff line change @@ -36,3 +36,19 @@ target_link_libraries(
3636 PUBLIC
3737 GTest::gtest
3838)
39+
40+ if (MSVC )
41+ # Group dependencies in Visual Studio
42+ set (THIRD_PARTY_TARGETS
43+ gmock
44+ gmock_main
45+ gtest
46+ gtest_main
47+ )
48+ # Move all dependencies into a subfolder
49+ set_target_properties (${THIRD_PARTY_TARGETS}
50+ PROPERTIES
51+ EXCLUDE_FROM_ALL TRUE
52+ FOLDER "Dependencies"
53+ )
54+ endif ()
You can’t perform that action at this time.
0 commit comments