diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/osx/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/osx/Exception.cpp | 1 | ||||
-rw-r--r-- | src/osx/graphics/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/osx/graphics/native/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/osx/graphics/native/Factory.cpp | 1 |
6 files changed, 27 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e10aafbd..ba2fbce6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,6 +4,8 @@ add_subdirectory(platform) if(WIN32) add_subdirectory(win) +elseif (APPLE) + add_subdirectory(osx) endif() add_subdirectory(ui) 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" |