File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ include(ExternalProject)
44
55project (ConstraintBasedLayout)
66
7+ add_custom_target (examples)
8+
79ExternalProject_Add(
810 sdk
911 PREFIX sdk
@@ -26,8 +28,11 @@ ExternalProject_Add(
2628 -DConstraintSDK_DIR=${CMAKE_CURRENT_BINARY_DIR} /sdk/install
2729 INSTALL_COMMAND ""
2830 DEPENDS sdk
31+ EXCLUDE_FROM_ALL true
2932)
3033
34+ add_dependencies (examples bare_wasm_cpp)
35+
3136ExternalProject_Add(
3237 emscripten_cpp
3338 PREFIX examples/emscripten_cpp
@@ -39,8 +44,11 @@ ExternalProject_Add(
3944 -DConstraintSDK_DIR=${CMAKE_CURRENT_BINARY_DIR} /sdk/install
4045 INSTALL_COMMAND ""
4146 DEPENDS sdk
47+ EXCLUDE_FROM_ALL true
4248)
4349
50+ add_dependencies (examples emscripten_cpp)
51+
4452if (NOT "${NATIVEAOT_ROOT} " STREQUAL "" )
4553 if ("${CMAKE_BUILD_TYPE} " STREQUAL "" )
4654 set (DOTNET_CONFIGURATION Debug)
@@ -49,7 +57,7 @@ if(NOT "${NATIVEAOT_ROOT}" STREQUAL "")
4957 endif ()
5058
5159 add_custom_target (
52- emscripten_csharp ALL
60+ emscripten_csharp
5361 COMMAND cmake -E env "\" NATIVEAOT_ROOT=${NATIVEAOT_ROOT} \" "
5462 dotnet publish
5563 -r browser-wasm
@@ -61,4 +69,6 @@ if(NOT "${NATIVEAOT_ROOT}" STREQUAL "")
6169 )
6270
6371 add_dependencies (emscripten_csharp sdk)
72+
73+ add_dependencies (examples emscripten_csharp)
6474endif ()
You can’t perform that action at this time.
0 commit comments