summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-12 06:42:41 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-12 06:42:41 +0000
commit9742e365bf8b9d2ced2d547e39c47ab4b05b5118 (patch)
treed00fa4b2ea8c6b0128793c05f508be3aafa3aaa6 /Graphics/GraphicsEngineD3D12
parentFixed compiler warnings (diff)
downloadDiligentCore-9742e365bf8b9d2ced2d547e39c47ab4b05b5118.tar.gz
DiligentCore-9742e365bf8b9d2ced2d547e39c47ab4b05b5118.zip
Updated CMake files
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineD3D12/CMakeLists.txt b/Graphics/GraphicsEngineD3D12/CMakeLists.txt
index 1a5d105a..970347e7 100644
--- a/Graphics/GraphicsEngineD3D12/CMakeLists.txt
+++ b/Graphics/GraphicsEngineD3D12/CMakeLists.txt
@@ -145,10 +145,9 @@ foreach(FILE ${SHADERS})
)
endforeach(FILE)
-set(DEPENDENCIES
+set(PRIVATE_DEPENDENCIES
BuildSettings
Common
- GraphicsEngine
GraphicsEngineD3DBase
GraphicsTools
TargetPlatform
@@ -156,10 +155,15 @@ set(DEPENDENCIES
D3D12.lib
d3dcompiler.lib
)
-target_link_libraries(GraphicsEngineD3D12-static PRIVATE ${DEPENDENCIES})
+
+set(PUBLIC_DEPENDENCIES
+ GraphicsEngine
+)
+
+target_link_libraries(GraphicsEngineD3D12-static PRIVATE ${PRIVATE_DEPENDENCIES} PUBLIC ${PUBLIC_DEPENDENCIES})
add_dependencies(GraphicsEngineD3D12-static GenerateMipsShaders)
-target_link_libraries(GraphicsEngineD3D12-shared PRIVATE ${DEPENDENCIES} )
+target_link_libraries(GraphicsEngineD3D12-shared PRIVATE ${PRIVATE_DEPENDENCIES} PUBLIC ${PUBLIC_DEPENDENCIES})
add_dependencies(GraphicsEngineD3D12-shared GenerateMipsShaders)
target_compile_definitions(GraphicsEngineD3D12-shared PUBLIC ENGINE_DLL)