Skip to content

Commit

Permalink
Put remaining targets under folders in Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
egorodet committed Sep 12, 2024
1 parent da0a033 commit 293dd66
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Externals/CLI11.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ CPMAddPackage(
GITHUB_REPOSITORY MethanePowered/CLI11
VERSION 2.3.2
)

set_target_properties(CLI11
PROPERTIES
FOLDER Externals
)
5 changes: 5 additions & 0 deletions Externals/Catch2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ CPMAddPackage(

list(APPEND CMAKE_MODULE_PATH "${Catch2_SOURCE_DIR}/extras")

set_target_properties(Catch2 Catch2WithMain
PROPERTIES
FOLDER Externals
)

# Catch2 headers produce build errors with GCC <= 9, which are muted here
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # GCC
target_compile_options(Catch2
Expand Down
5 changes: 5 additions & 0 deletions Externals/DirectXHeaders.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ CPMAddPackage(
GITHUB_REPOSITORY MethanePowered/DirectXHeaders
VERSION 1.608.2b
)

set_target_properties(DirectX-Headers DirectX-Guids
PROPERTIES
FOLDER Externals
)
2 changes: 1 addition & 1 deletion Externals/TaskFlow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ else() # Clang or GCC
target_compile_options(Taskflow INTERFACE
-Wno-shorten-64-to-32 # implicit conversion loses integer precision: 'unsigned long' to 'int' (taskflow/core/observer.hpp:568:24)
)
endif()
endif()
7 changes: 7 additions & 0 deletions Modules/Graphics/RHI/Impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,11 @@ if(METHANE_TESTS_BUILD_ENABLED)
)
endif()

set_target_properties(${TEST_TARGET}
PROPERTIES
FOLDER Modules/Graphics/RHI
UNITY_BUILD ${METHANE_UNITY_BUILD_ENABLED}
UNITY_BUILD_BATCH_SIZE 4
)

endif() # METHANE_TESTS_BUILD_ENABLED

0 comments on commit 293dd66

Please sign in to comment.