plusui-native-core 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Core/CMakeLists.txt +15 -0
- package/package.json +1 -1
package/Core/CMakeLists.txt
CHANGED
|
@@ -19,6 +19,7 @@ else()
|
|
|
19
19
|
add_definitions(-DPLUSUI_GTK)
|
|
20
20
|
endif()
|
|
21
21
|
|
|
22
|
+
add_library(plusui STATIC
|
|
22
23
|
Features/Bindings/NativeBindings/native_bindings.cpp
|
|
23
24
|
Features/Bindings/CustomBindings/custom_bindings.cpp
|
|
24
25
|
Features/App/app.cpp
|
|
@@ -53,6 +54,20 @@ target_compile_options(plusui PRIVATE
|
|
|
53
54
|
find_package(Threads REQUIRED)
|
|
54
55
|
target_link_libraries(plusui PRIVATE Threads::Threads)
|
|
55
56
|
|
|
57
|
+
# ============================================================
|
|
58
|
+
# nlohmann/json - Required for bindings
|
|
59
|
+
# ============================================================
|
|
60
|
+
include(FetchContent)
|
|
61
|
+
|
|
62
|
+
FetchContent_Declare(
|
|
63
|
+
nlohmann_json
|
|
64
|
+
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz
|
|
65
|
+
URL_HASH SHA256=d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
FetchContent_MakeAvailable(nlohmann_json)
|
|
69
|
+
target_link_libraries(plusui PUBLIC nlohmann_json::nlohmann_json)
|
|
70
|
+
|
|
56
71
|
# ============================================================
|
|
57
72
|
# WebGPU: Dawn Library (Optional)
|
|
58
73
|
# ============================================================
|