CMakeLists.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. option(ATOMIC_JAVASCRIPT "Build JS Bindings" ON)
  2. if (WEB)
  3. set(ATOMIC_DOTNET OFF)
  4. else ()
  5. option(ATOMIC_DOTNET "Build .NET Bindings" ON)
  6. endif ()
  7. option(ATOMIC_EDITOR "Build Editor" ON)
  8. option(ATOMIC_DATABASE_SQLITE "Enable SQLite database subsystem" OFF)
  9. option(ATOMIC_DATABASE_ODBC "Enable ODBC database subsystem" OFF)
  10. option(ATOMIC_IK "Enable inverse kinematics subsystem" OFF)
  11. option(ATOMIC_PROFILING "Enable profiler" ${ATOMIC_RELEASE_OFF})
  12. if (WIN32)
  13. option (ATOMIC_D3D9 "Use DirectX 9" OFF)
  14. option (ATOMIC_OPENGL "Use OpenGL" OFF)
  15. if (NOT ATOMIC_D3D9 AND NOT ATOMIC_OPENGL)
  16. set (ATOMIC_D3D11 ON)
  17. endif ()
  18. endif ()
  19. if (ATOMIC_OPENGL)
  20. message(STATUS "Renderer: OpenGL")
  21. elseif (ATOMIC_D3D11)
  22. message(STATUS "Renderer: D3D11")
  23. elseif (ATOMIC_D3D9)
  24. message(STATUS "Renderer: D3D9")
  25. endif ()
  26. add_subdirectory(ThirdParty)
  27. add_subdirectory(Atomic)
  28. if (ATOMIC_JAVASCRIPT)
  29. add_subdirectory(AtomicPlayer)
  30. add_subdirectory(AtomicJS)
  31. add_subdirectory(AtomicPlayerJS)
  32. endif ()
  33. if (ATOMIC_WEBVIEW)
  34. add_subdirectory(AtomicWebView)
  35. endif ()
  36. if (ATOMIC_DOTNET)
  37. add_subdirectory(AtomicApp)
  38. add_subdirectory(AtomicNET)
  39. endif ()
  40. if (ATOMIC_DESKTOP)
  41. if (ATOMIC_DOTNET OR ATOMIC_JAVASCRIPT)
  42. add_subdirectory(AtomicTool)
  43. endif ()
  44. add_subdirectory(Tools)
  45. add_subdirectory(ToolCore)
  46. if (ATOMIC_JAVASCRIPT)
  47. add_subdirectory(ToolCoreJS)
  48. endif ()
  49. if (ATOMIC_WEBVIEW AND ATOMIC_EDITOR)
  50. add_subdirectory(AtomicEditor)
  51. endif ()
  52. endif ()
  53. include(AtomicDocList)