comparison Platforms/Wasm/CMakeLists.txt @ 257:9afafb192180 am-2

using PAM
author am@osimis.io
date Tue, 10 Jul 2018 12:39:01 +0200
parents 65562a28fe05
children dc1beee33134
comparison
equal deleted inserted replaced
255:65562a28fe05 257:9afafb192180
42 # Regenerate a dummy "WasmWebService.c" file each time the "WasmWebService.js" file 42 # Regenerate a dummy "WasmWebService.c" file each time the "WasmWebService.js" file
43 # is modified, so as to force a new execution of the linking 43 # is modified, so as to force a new execution of the linking
44 add_custom_command( 44 add_custom_command(
45 OUTPUT "${AUTOGENERATED_DIR}/WasmWebService.c" 45 OUTPUT "${AUTOGENERATED_DIR}/WasmWebService.c"
46 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/WasmWebService.c" "" 46 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/WasmWebService.c" ""
47 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/WebAssembly/WasmWebService.js") 47 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.js")
48 48
49 add_custom_command( 49 add_custom_command(
50 OUTPUT "${AUTOGENERATED_DIR}/default-library.c" 50 OUTPUT "${AUTOGENERATED_DIR}/default-library.c"
51 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/default-library.c" "" 51 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/default-library.c" ""
52 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/WebAssembly/default-library.js") 52 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/default-library.js")
53 53
54 54
55 ##################################################################### 55 #####################################################################
56 ## Build all the sample applications 56 ## Build all the sample applications
57 ##################################################################### 57 #####################################################################
60 60
61 61
62 macro(BuildSample Target Header Sample) 62 macro(BuildSample Target Header Sample)
63 add_executable(${Target} 63 add_executable(${Target}
64 ${STONE_WASM_SOURCES} 64 ${STONE_WASM_SOURCES}
65
66 ${AUTOGENERATED_DIR}/WasmWebService.c
67 ${AUTOGENERATED_DIR}/default-library.c
65 68
66 ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleMainWasm.cpp 69 ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleMainWasm.cpp
67 # ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleApplicationContext.cpp 70 # ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleApplicationContext.cpp
68 ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleInteractor.h 71 ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleInteractor.h
69 ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleApplicationBase.h 72 ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleApplicationBase.h