From bcb879240f96764b8f17da2878fc0784c51b6054 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 19 Aug 2021 23:27:00 +0800 Subject: ... --- src/osx/CMakeLists.txt | 11 +++++++++++ src/osx/Exception.cpp | 1 + src/osx/graphics/CMakeLists.txt | 1 + src/osx/graphics/native/CMakeLists.txt | 11 +++++++++++ src/osx/graphics/native/Factory.cpp | 1 + 5 files changed, 25 insertions(+) create mode 100644 src/osx/CMakeLists.txt create mode 100644 src/osx/Exception.cpp create mode 100644 src/osx/graphics/CMakeLists.txt create mode 100644 src/osx/graphics/native/CMakeLists.txt create mode 100644 src/osx/graphics/native/Factory.cpp (limited to 'src/osx') diff --git a/src/osx/CMakeLists.txt b/src/osx/CMakeLists.txt new file mode 100644 index 00000000..8013a5d6 --- /dev/null +++ b/src/osx/CMakeLists.txt @@ -0,0 +1,11 @@ +set(CRU_OSX_BASE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/osx) + +add_library(cru_osx_base SHARED + Exception.cpp +) + +target_sources(cru_osx_base PUBLIC + ${CRU_OSX_BASE_INCLUDE_DIR}/Exception.hpp +) + +add_subdirectory(graphics) diff --git a/src/osx/Exception.cpp b/src/osx/Exception.cpp new file mode 100644 index 00000000..c7eef64b --- /dev/null +++ b/src/osx/Exception.cpp @@ -0,0 +1 @@ +#include "cru/osx/Exception.hpp" diff --git a/src/osx/graphics/CMakeLists.txt b/src/osx/graphics/CMakeLists.txt new file mode 100644 index 00000000..91ffbfaf --- /dev/null +++ b/src/osx/graphics/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(native) diff --git a/src/osx/graphics/native/CMakeLists.txt b/src/osx/graphics/native/CMakeLists.txt new file mode 100644 index 00000000..610292da --- /dev/null +++ b/src/osx/graphics/native/CMakeLists.txt @@ -0,0 +1,11 @@ +set(CRU_OSX_GRAPHICS_NATIVE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/osx/graphics/native) + +add_library(cru_win_graphics_direct SHARED + Factory.cpp +) +target_sources(cru_win_graphics_direct PUBLIC + ${CRU_OSX_GRAPHICS_NATIVE_INCLUDE_DIR}/Factory.hpp +) +target_link_libraries(cru_win_graphics_direct PUBLIC cocoa) +target_link_libraries(cru_win_graphics_direct PUBLIC cru_osx_base cru_platform_graphics) + diff --git a/src/osx/graphics/native/Factory.cpp b/src/osx/graphics/native/Factory.cpp new file mode 100644 index 00000000..0025ca3e --- /dev/null +++ b/src/osx/graphics/native/Factory.cpp @@ -0,0 +1 @@ +#include "cru/osx/graphics/native/Factory.hpp" -- cgit v1.2.3