From 58cd5ac07c0455499dff9590bab015fe1ef20483 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Wed, 30 Apr 2025 09:08:06 +0200 Subject: [PATCH] wasm exclude server, ui and tests when compiling to wasm --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6485b31..4162344 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,14 +21,20 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY set(PROJECT_DIR ${CMAKE_CURRENT_LIST_DIR}) # defines targets and sources +if(NOT EMSCRIPTEN) add_subdirectory(UI) +endif() # contains an "external" library we will link to add_subdirectory(external) # defines the executable -add_subdirectory(tools) +if(NOT EMSCRIPTEN) +add_subdirectory(server) +endif() # enable testing and define tests +if(NOT EMSCRIPTEN) enable_testing() add_subdirectory(tests) +endif()