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.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. # Preparing the bundle on install
  21. # http://www.cmake.org/Wiki/BundleUtilitiesExample
  22. # Why does it even work?
  23. if (APPLE)
  24. set (plugin_dest_dir OpenRaider.app/Contents/MacOS)
  25. set (APPS "${PROJECT_BINARY_DIR}/src/OpenRaider.app")
  26. set (DIRS ${QT_LIBRARY_DIRS})
  27. install (CODE "
  28. file(GLOB_RECURSE PLUGINS
  29. \"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/plugins/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
  30. include(BundleUtilities)
  31. fixup_bundle(\"${APPS}\" \"\${PLUGINS}\" \"${DIRS}\")
  32. " COMPONENT Runtime
  33. )
  34. endif (APPLE)