diff options
Diffstat (limited to 'src/platform/graphics')
-rw-r--r-- | src/platform/graphics/CMakeLists.txt | 9 | ||||
-rw-r--r-- | src/platform/graphics/NullPainter.cpp | 1 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/platform/graphics/CMakeLists.txt b/src/platform/graphics/CMakeLists.txt index 5f841267..7d86db40 100644 --- a/src/platform/graphics/CMakeLists.txt +++ b/src/platform/graphics/CMakeLists.txt @@ -1,14 +1,17 @@ set(CRU_PLATFORM_GRAPHICS_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/platform/graphics) -add_library(cru_platform_graphics INTERFACE) -target_sources(cru_platform_graphics INTERFACE +add_library(cru_platform_graphics SHARED + NullPainter.cpp +) +target_sources(cru_platform_graphics PUBLIC ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Base.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Brush.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Font.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Geometry.hpp + ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/NullPainter.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Factory.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Resource.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Painter.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/TextLayout.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/util/Painter.hpp ) -target_link_libraries(cru_platform_graphics INTERFACE cru_platform_base) +target_link_libraries(cru_platform_graphics PUBLIC cru_platform_base) diff --git a/src/platform/graphics/NullPainter.cpp b/src/platform/graphics/NullPainter.cpp new file mode 100644 index 00000000..1b02ea07 --- /dev/null +++ b/src/platform/graphics/NullPainter.cpp @@ -0,0 +1 @@ +#include "cru/platform/graphics/NullPainter.hpp" |