exclude server, ui and tests when compiling to wasm
This commit is contained in:
2026-02-14 14:31:28 +01:00
parent 67ac93a313
commit 58cd5ac07c
+7 -1
View File
@@ -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()