Skip to content

Commit 34fc4c4

Browse files
committed
Use our custom emscripten.html for cmake executables too
Signed-off-by: falkTX <falktx@falktx.com>
1 parent a9ab7e1 commit 34fc4c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/DPF-plugin.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,13 @@ function(dpf_add_executable NAME)
355355
dpf__create_dummy_source_list(_no_srcs)
356356
dpf__add_executable("${NAME}" ${_no_srcs})
357357
target_include_directories("${NAME}" PUBLIC "${DPF_ROOT_DIR}/distrho")
358+
set_target_properties("${NAME}" PROPERTIES
359+
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin/$<0:>"
360+
OUTPUT_NAME "${NAME}")
358361

359362
if(EMSCRIPTEN)
363+
configure_file("${DPF_ROOT_DIR}/utils/emscripten.html.in"
364+
"${PROJECT_BINARY_DIR}/bin/${NAME}.html" @ONLY)
360365
target_link_options("${NAME}"
361366
PRIVATE
362367
-sEXPORTED_RUNTIME_METHODS=dynCall)

0 commit comments

Comments
 (0)