Skip to content

Commit

Permalink
Fix missing files for unit tests running on Emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
mikke89 committed Oct 13, 2024
1 parent 6fe03a7 commit 9aa766d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ include("${PROJECT_SOURCE_DIR}/CMake/DependenciesForTests.cmake")

if(EMSCRIPTEN)
# Add data for tests to emscripten targets
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -sLLD_REPORT_UNDEFINED --preload-file \"${CMAKE_CURRENT_SOURCE_DIR}/Data/@/Tests/Data/\"")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -sLLD_REPORT_UNDEFINED")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --preload-file \"${CMAKE_CURRENT_SOURCE_DIR}/Data/@/Tests/Data/\"")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --preload-file \"${PROJECT_SOURCE_DIR}/Samples/basic/demo/data/@/basic/demo/data/\"")
endif()

add_subdirectory("Source")

0 comments on commit 9aa766d

Please sign in to comment.