summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/CMakeLists.txt15
-rw-r--r--Graphics/GraphicsEngineD3D11/src/DLLMain.cpp3
2 files changed, 5 insertions, 13 deletions
diff --git a/Graphics/GraphicsEngineD3D11/CMakeLists.txt b/Graphics/GraphicsEngineD3D11/CMakeLists.txt
index 7b51a05a..e11d3557 100644
--- a/Graphics/GraphicsEngineD3D11/CMakeLists.txt
+++ b/Graphics/GraphicsEngineD3D11/CMakeLists.txt
@@ -90,7 +90,6 @@ add_library(GraphicsEngineD3D11-static STATIC
)
add_library(GraphicsEngineD3D11-shared SHARED
- ${SRC} ${INTERFACE} ${INCLUDE}
src/DLLMain.cpp
src/GraphicsEngineD3D11.def
readme.md
@@ -107,12 +106,8 @@ PRIVATE
include
)
-target_include_directories(GraphicsEngineD3D11-shared
+target_link_libraries(GraphicsEngineD3D11-static
PRIVATE
- include
-)
-
-set(PRIVATE_DEPENDENCIES
BuildSettings
GraphicsEngineD3DBase
TargetPlatform
@@ -120,15 +115,11 @@ set(PRIVATE_DEPENDENCIES
dxgi.lib
d3d11.lib
d3dcompiler.lib
-)
-
-set(PUBLIC_DEPENDENCIES
+PUBLIC
GraphicsEngineD3D11Interface
)
-target_link_libraries(GraphicsEngineD3D11-static PRIVATE ${PRIVATE_DEPENDENCIES} PUBLIC ${PUBLIC_DEPENDENCIES})
-
-target_link_libraries(GraphicsEngineD3D11-shared PRIVATE ${PRIVATE_DEPENDENCIES} PUBLIC ${PUBLIC_DEPENDENCIES})
+target_link_libraries(GraphicsEngineD3D11-shared PUBLIC GraphicsEngineD3D11-static)
target_compile_definitions(GraphicsEngineD3D11-shared PUBLIC ENGINE_DLL=1)
source_group("src" FILES ${SRC} )
diff --git a/Graphics/GraphicsEngineD3D11/src/DLLMain.cpp b/Graphics/GraphicsEngineD3D11/src/DLLMain.cpp
index 58b1c375..419f9921 100644
--- a/Graphics/GraphicsEngineD3D11/src/DLLMain.cpp
+++ b/Graphics/GraphicsEngineD3D11/src/DLLMain.cpp
@@ -21,7 +21,8 @@
* of the possibility of such damages.
*/
-#include "pch.h"
+#include <Windows.h>
+#include <crtdbg.h>
BOOL APIENTRY DllMain(HANDLE hModule,
DWORD ul_reason_for_call,