This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
CMakeLists.txt
42 lines (35 loc) · 2.14 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
39
40
41
42
file( GLOB_RECURSE SOURCES "*.*" )
if (DEFINED ANDROID)
add_library( "Tests.FrameGraph" STATIC ${SOURCES} )
else ()
add_executable( "Tests.FrameGraph" ${SOURCES} )
endif ()
source_group( TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES} )
set_property( TARGET "Tests.FrameGraph" PROPERTY FOLDER "Tests" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Buffer" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/CommandBuffer" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Debugger" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Descriptors" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Image" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Instance" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Memory" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Pipeline" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/RenderPass" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/RayTracing" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Swapchain" )
target_include_directories( "Tests.FrameGraph" PRIVATE "../../framegraph/Vulkan/Utils" )
target_compile_definitions( "Tests.FrameGraph" PUBLIC "FG_TEST_GRAPHS_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/Graphs\"" )
target_compile_definitions( "Tests.FrameGraph" PUBLIC "FG_TEST_DUMPS_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/Dumps\"" )
target_link_libraries( "Tests.FrameGraph" "FrameGraph" )
target_link_libraries( "Tests.FrameGraph" "Framework" )
if (TARGET "GraphViz")
target_link_libraries( "Tests.FrameGraph" "GraphViz" )
endif()
if (TARGET "PipelineCompiler")
target_link_libraries( "Tests.FrameGraph" "PipelineCompiler" )
endif ()
if (TARGET "lodepng-lib")
target_link_libraries( "Tests.FrameGraph" "lodepng-lib" )
endif()
add_test( NAME "Tests.FrameGraph" COMMAND "Tests.FrameGraph" )