|
SET(CMAKE_SYSTEM_NAME Linux)
|
|
SET(CMAKE_SYSTEM_PROCESSOR x86)
|
|
|
|
if (CMAKE_HOST_WIN32)
|
|
SET(EMSCRIPTEN_EXTENSION ".bat")
|
|
else ()
|
|
SET(EMSCRIPTEN_EXTENSION "")
|
|
endif()
|
|
|
|
SET(CMAKE_C_COMPILER emcc${EMSCRIPTEN_EXTENSION})
|
|
SET(CMAKE_CXX_COMPILER em++${EMSCRIPTEN_EXTENSION})
|
|
|
|
if(NOT DEFINED CMAKE_AR)
|
|
find_program(CMAKE_AR NAMES emar${EMSCRIPTEN_EXTENSION})
|
|
endif()
|
|
if(NOT DEFINED CMAKE_RANLIB)
|
|
find_program(CMAKE_RANLIB NAMES emranlib${EMSCRIPTEN_EXTENSION})
|
|
endif()
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|