You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
646 B

  1. SET(CMAKE_SYSTEM_NAME Linux)
  2. SET(CMAKE_SYSTEM_PROCESSOR x86)
  3. if (CMAKE_HOST_WIN32)
  4. SET(EMSCRIPTEN_EXTENSION ".bat")
  5. else ()
  6. SET(EMSCRIPTEN_EXTENSION "")
  7. endif()
  8. SET(CMAKE_C_COMPILER emcc${EMSCRIPTEN_EXTENSION})
  9. SET(CMAKE_CXX_COMPILER em++${EMSCRIPTEN_EXTENSION})
  10. if(NOT DEFINED CMAKE_AR)
  11. find_program(CMAKE_AR NAMES emar${EMSCRIPTEN_EXTENSION})
  12. endif()
  13. if(NOT DEFINED CMAKE_RANLIB)
  14. find_program(CMAKE_RANLIB NAMES emranlib${EMSCRIPTEN_EXTENSION})
  15. endif()
  16. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  17. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  18. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
  19. set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)