Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.1KB

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