CMakeLists.txt 938 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. project (Atomic)
  2. cmake_minimum_required (VERSION 3.0.2)
  3. set (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
  4. add_definitions( -DATOMIC_API= -DATOMIC_STATIC_DEFINE -DATOMIC_LOGGING -DATOMIC_PHYSICS -DATOMIC_ATOMIC2D )
  5. # this is here as QtCreator is having trouble picking up #include <Atomic/*> without it
  6. include_directories(${CMAKE_SOURCE_DIR}/Source ${CMAKE_SOURCE_DIR}/Source/AtomicEditor/Source)
  7. set (ATOMIC_LINK_LIBRARIES Atomic Box2D Bullet Duktape FreeType JO LZ4 PugiXml StanHull STB )
  8. if (NOT EMSCRIPTEN)
  9. add_definitions( -DATOMIC_NETWORK )
  10. set (ATOMIC_LINK_LIBRARIES ${ATOMIC_LINK_LIBRARIES} SDL Civetweb Recast Detour kNet )
  11. endif()
  12. if (MSVC)
  13. include(AtomicWindows)
  14. elseif(APPLE)
  15. if (IOS)
  16. include(AtomicIOS)
  17. else()
  18. include(AtomicMac)
  19. endif()
  20. elseif(ANDROID)
  21. include(AtomicAndroid)
  22. elseif(EMSCRIPTEN)
  23. include(AtomicWeb)
  24. endif()
  25. add_subdirectory(Source)