blob: d4c96a659d4faebb69c2429decffef3f1f588a6f (
plain)
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
|
set(CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/win/graphics/direct)
add_library(cru_win_graphics_direct STATIC
Brush.cpp
Font.cpp
Geometry.cpp
Factory.cpp
Painter.cpp
Resource.cpp
TextLayout.cpp
WindowPainter.cpp
WindowRenderTarget.cpp
)
target_sources(cru_win_graphics_direct PUBLIC
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/Brush.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/ComResource.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/ConvertUtil.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/Exception.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/Font.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/Geometry.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/Factory.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/Painter.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/Resource.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/TextLayout.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/WindowPainter.hpp
${CRU_WIN_GRAPHICS_DIRECT_INCLUDE_DIR}/WindowRenderTarget.hpp
)
target_link_libraries(cru_win_graphics_direct PUBLIC D3D11 D2d1 DWrite)
target_link_libraries(cru_win_graphics_direct PUBLIC cru_win_base cru_platform_graphics)
|