comparison README @ 295:b04b13810540 am-2

unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
author am@osimis.io
date Tue, 04 Sep 2018 15:09:42 +0200
parents 30dc6e383b0b
children 4d8ac609fc33 64d90190a08c
comparison
equal deleted inserted replaced
294:faccc4b07b92 295:b04b13810540
91 or into native SDL applications. 91 or into native SDL applications.
92 92
93 to build the WASM samples: 93 to build the WASM samples:
94 ------------------------- 94 -------------------------
95 ``` 95 ```
96 cd ~/orthanc-stone/Platforms/Wasm 96 cd ~/orthanc-stone/Applications/Samples
97 ./build-wasm.sh 97 ./build-wasm.sh
98 ``` 98 ```
99 99
100 to serve the WASM samples: 100 to serve the WASM samples:
101 ``` 101 ```
110 to build the SDL native samples (SimpleViewer only): 110 to build the SDL native samples (SimpleViewer only):
111 ------------------------------- 111 -------------------------------
112 ``` 112 ```
113 mkdir -p ~/builds/orthanc-stone-build 113 mkdir -p ~/builds/orthanc-stone-build
114 cd ~/builds/orthanc-stone-build 114 cd ~/builds/orthanc-stone-build
115 cmake -DALLOW_DOWNLOADS=ON ~/orthanc-stone/ 115 cmake -DALLOW_DOWNLOADS=ON -DENABLE_SDL=ON ~/orthanc-stone/Applications/Samples/
116 cmake --build . --target OrthancStoneSimpleViewer -- -j 5 116 cmake --build . --target OrthancStoneSimpleViewer -- -j 5
117 ``` 117 ```
118 118
119 to execute the native samples: 119 to execute the native samples:
120 ``` 120 ```
121 # launch an Orthanc listening on 8042 port: 121 # launch an Orthanc listening on 8042 port:
122 Orthanc 122 Orthanc
123 123
124 # launch the sample 124 # launch the sample
125 ./OrthancStoneSimpleViewer --instance1=XX --instance2=XX 125 ./OrthancStoneSimpleViewer --studyId=XX
126 ``` 126 ```
127 127
128 128
129 Licensing 129 Licensing
130 --------- 130 ---------