diff options
author | crupest <crupest@outlook.com> | 2019-12-13 01:02:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-12-13 01:02:47 +0800 |
commit | 9110574bb51e9e2959842a7641f598d34c3cd847 (patch) | |
tree | 96ee1f5b3c40095e4e923fc763de0663ee6a01aa /src/platform | |
parent | f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 (diff) | |
download | cru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.gz cru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.bz2 cru-9110574bb51e9e2959842a7641f598d34c3cd847.zip |
...
Diffstat (limited to 'src/platform')
-rw-r--r-- | src/platform/native/CMakeLists.txt | 8 | ||||
-rw-r--r-- | src/platform/native/ui_application.cpp | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/platform/native/CMakeLists.txt b/src/platform/native/CMakeLists.txt index be3e73a5..c3ca3d7e 100644 --- a/src/platform/native/CMakeLists.txt +++ b/src/platform/native/CMakeLists.txt @@ -1,10 +1,12 @@ set(CRU_PLATFORM_NATIVE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/platform/native) -add_library(cru_platform_native INTERFACE) -target_sources(cru_platform_native INTERFACE +add_library(cru_platform_native STATIC + ui_application.cpp +) +target_sources(cru_platform_native PUBLIC ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/basic_types.hpp ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/cursor.hpp ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/event.hpp ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/window.hpp ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/ui_application.hpp ) -target_link_libraries(cru_platform_native INTERFACE cru_platform_graph) +target_link_libraries(cru_platform_native PUBLIC cru_platform_graph) diff --git a/src/platform/native/ui_application.cpp b/src/platform/native/ui_application.cpp new file mode 100644 index 00000000..b4794182 --- /dev/null +++ b/src/platform/native/ui_application.cpp @@ -0,0 +1,5 @@ +#include "cru/platform/native/ui_application.hpp" + +namespace cru::platform::native { +IUiApplication* IUiApplication::instance = nullptr; +} |