Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

CMakeLists.txt 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. cmake_minimum_required (VERSION 2.8)
  2. project (OpenRaider)
  3. # Version Number
  4. set (OpenRaider_VERSION_MAJOR 0)
  5. set (OpenRaider_VERSION_MINOR 1)
  6. set (OpenRaider_VERSION_MICRO 2)
  7. # Build Host
  8. set (OpenRaider_BUILD_HOST ${CMAKE_HOST_SYSTEM})
  9. # Configuration Header file
  10. configure_file (
  11. "${PROJECT_SOURCE_DIR}/include/Config.h.in"
  12. "${PROJECT_BINARY_DIR}/Config.h"
  13. )
  14. include_directories ("${PROJECT_BINARY_DIR}")
  15. # Default to Debug build
  16. set (CMAKE_BUILD_TYPE "Debug")
  17. # Add subdirectories
  18. add_subdirectory (src)
  19. add_subdirectory (test)
  20. # Add test target
  21. add_custom_target (tests)
  22. add_dependencies (tests GLStringTest MathTest MatrixTest NetworkTest SoundTest TGATest TombRaiderTest)
  23. # Preparing the bundle on install
  24. # http://www.cmake.org/Wiki/BundleUtilitiesExample
  25. # Why does it even work?
  26. if (APPLE)
  27. set (plugin_dest_dir OpenRaider.app/Contents/MacOS)
  28. set (APPS "${PROJECT_BINARY_DIR}/src/OpenRaider.app")
  29. set (DIRS ${QT_LIBRARY_DIRS})
  30. install (CODE "
  31. file(GLOB_RECURSE PLUGINS
  32. \"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/plugins/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
  33. include(BundleUtilities)
  34. fixup_bundle(\"${APPS}\" \"\${PLUGINS}\" \"${DIRS}\")
  35. " COMPONENT Runtime
  36. )
  37. endif (APPLE)