forked from GPUOpen-LibrariesAndSDKs/RenderPipelineShaders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (33 loc) · 1.52 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
#
# This file is part of the AMD Render Pipeline Shaders SDK which is
# released under the AMD INTERNAL EVALUATION LICENSE.
#
# See file LICENSE.txt for full license details.
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE} )
file( GLOB_RECURSE GuiTestSrcs "${CMAKE_CURRENT_SOURCE_DIR}/test_*.cpp" )
if ( NOT RpsEnableVulkanTests )
list( FILTER GuiTestSrcs EXCLUDE REGEX ".*_vk.cpp" )
endif()
message( STATUS "Found Tests: ${GuiTestSrcs}" )
# TODO:
if ( WIN32 )
foreach( TestSrc ${GuiTestSrcs} )
if( TestSrc MATCHES "${CMAKE_CURRENT_SOURCE_DIR}/test_visualizer" )
if ( ${RpsEnableImGui} )
set( Dependencies "rps_visualizer;ImGuiWin32Backend" )
set( IncludeDirectories ${CMAKE_SOURCE_DIR}/tools/rps_visualizer/include )
if( TestSrc MATCHES "_vk.cpp" )
set( Dependencies "${Dependencies};ImGuiVkBackend" )
else()
set( Dependencies "${Dependencies};ImGuiDX12Backend" )
endif()
SetupTestApp( ${TestSrc} "${AppFolder}/gui" "${IncludeDirectories}" "${Dependencies}" False False)
endif()
elseif(TestSrc MATCHES "${CMAKE_CURRENT_SOURCE_DIR}/test_triangle_vk")
SetupTestApp( ${TestSrc} "${AppFolder}/gui" "" "" True True )
else()
SetupTestApp( ${TestSrc} "${AppFolder}/gui" "" "" False False)
endif()
endforeach()
endif()