No, but we make judicious use of the if(CMAKE_SYSTEM_NAME STREQUAL
Emscripten) conditional, to separate Emscripten flows from non-emscripten
flows.

On Thu, 9 Jul 2020 at 20:06, 'Steven Johnson' via emscripten-discuss <
[email protected]> wrote:

> On Wed, Jul 8, 2020 at 10:26 PM Shachar Langbeheim <[email protected]>
> wrote:
> > In our project we have a single cmake project, with multiple targets -
> backend & tests executables are built with clang, wasm with emscripten. It
> works ok - not perfect, because we still need to add a lot of if statements
> to handle the different files that belong in different executables, and the
> different compilation and linking flags for each target, but it works.
>
> Interesting, I didn't think that was possible, at least not with the
> standard CMake commands. Do you just use `add_custom_command` to drive
> command-line tools directly, rather than (e.g.) `add_library()` and
> friends?
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/CAM%3Ddnve7Ve_gc6TNfHkjHBx0vGVc4EAmaHQ2L4CU%2B2_H-2hfCw%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CA%2B_KjGbkfN8cOtf%3D4GsUZ%2BJ9vv%3DFKe1Z-FW-p%3Dps42m_9gBG4Q%40mail.gmail.com.

Reply via email to