CMakeLists.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. add_subdirectory(ThirdParty)
  20. add_subdirectory(Atomic)
  21. if (ATOMIC_JAVASCRIPT)
  22. add_subdirectory(AtomicPlayer)
  23. add_subdirectory(AtomicJS)
  24. add_subdirectory(AtomicPlayerJS)
  25. endif ()
  26. if (ATOMIC_WEBVIEW)
  27. add_subdirectory(AtomicWebView)
  28. endif ()
  29. if (ATOMIC_DOTNET)
  30. add_subdirectory(AtomicApp)
  31. add_subdirectory(AtomicNET)
  32. endif ()
  33. if (ATOMIC_DESKTOP)
  34. if (ATOMIC_DOTNET OR ATOMIC_JAVASCRIPT)
  35. add_subdirectory(AtomicTool)
  36. endif ()
  37. add_subdirectory(Tools)
  38. add_subdirectory(ToolCore)
  39. if (ATOMIC_JAVASCRIPT)
  40. add_subdirectory(ToolCoreJS)
  41. endif ()
  42. if (ATOMIC_WEBVIEW AND ATOMIC_EDITOR)
  43. add_subdirectory(AtomicEditor)
  44. endif ()
  45. endif ()
  46. include(AtomicDocList)