CMakeLists.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. execute_process( COMMAND git submodule update --init --recursive )
  2. set_directory_properties( PROPERTIES CLEAN_NO_CUSTOM 1)
  3. IF (EMSCRIPTEN)
  4. ELSEIF (ANDROID)
  5. set( SDL_STATIC ON CACHE BOOL "Build the static SDL library" )
  6. set( SDL_SHARED OFF CACHE BOOL "Build the shared SDL library" )
  7. # set( SDL_FILESYSTEM FALSE )
  8. set( PTHREADS OFF CACHE BOOL "Pthread support" )
  9. add_subdirectory( SDL )
  10. set( PHYSFS_BUILD_STATIC ON CACHE BOOL "Build the static physfs library" )
  11. set( PHYSFS_BUILD_SHARED OFF CACHE BOOL "Build the shared physfs library" )
  12. set( PHYSFS_BUILD_TEST OFF CACHE BOOL "Build the test physfs program" )
  13. add_subdirectory( physfs )
  14. ELSE ()
  15. set( SDL_STATIC OFF CACHE BOOL "Build the static SDL library" )
  16. set( SDL_SHARED ON CACHE BOOL "Build the shared SDL library" )
  17. add_subdirectory( SDL )
  18. set( glew-cmake_BUILD_SHARED ON CACHE BOOL "Build the shared glew library" )
  19. set( glew-cmake_BUILD_STATIC OFF CACHE BOOL "Build the static glew library" )
  20. set( glew-cmake_BUILD_SINGLE_CONTEXT ON CACHE BOOL "Build the single context glew library" )
  21. set( glew-cmake_BUILD_MULTI_CONTEXT OFF CACHE BOOL "Build the multi context glew library" )
  22. add_subdirectory( glew )
  23. set( PHYSFS_BUILD_STATIC OFF CACHE BOOL "Build the static physfs library" )
  24. set( PHYSFS_BUILD_SHARED ON CACHE BOOL "Build the shared physfs library" )
  25. set( PHYSFS_BUILD_TEST OFF CACHE BOOL "Build the test physfs program" )
  26. add_subdirectory( physfs )
  27. ENDIF ()