CMakeLists.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #
  2. # Copyright (c) 2008-2013 the Urho3D project.
  3. #
  4. # Permission is hereby granted, free of charge, to any person obtaining a copy
  5. # of this software and associated documentation files (the "Software"), to deal
  6. # in the Software without restriction, including without limitation the rights
  7. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. # copies of the Software, and to permit persons to whom the Software is
  9. # furnished to do so, subject to the following conditions:
  10. #
  11. # The above copyright notice and this permission notice shall be included in
  12. # all copies or substantial portions of the Software.
  13. #
  14. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. # THE SOFTWARE.
  21. #
  22. # Set project name
  23. project (Urho3D-Samples)
  24. # Find Urho3D library
  25. find_package (Urho3D REQUIRED)
  26. include_directories (${URHO3D_INCLUDE_DIRS})
  27. # Include common to all samples
  28. set (COMMON_SAMPLE_H_FILES "${CMAKE_CURRENT_SOURCE_DIR}/Sample.h" "${CMAKE_CURRENT_SOURCE_DIR}/Sample.inl")
  29. # Define dependency libs
  30. set (INCLUDE_DIRS_ONLY ${CMAKE_CURRENT_SOURCE_DIR})
  31. # Add samples
  32. add_subdirectory (01_HelloWorld)
  33. add_subdirectory (02_HelloGUI)
  34. add_subdirectory (03_Sprites)
  35. add_subdirectory (04_StaticScene)
  36. add_subdirectory (05_AnimatingScene)
  37. add_subdirectory (06_SkeletalAnimation)
  38. add_subdirectory (07_Billboards)
  39. add_subdirectory (08_Decals)
  40. add_subdirectory (09_MultipleViewports)
  41. add_subdirectory (10_RenderToTexture)
  42. add_subdirectory (11_Physics)
  43. add_subdirectory (12_PhysicsStressTest)
  44. add_subdirectory (13_Ragdolls)
  45. add_subdirectory (14_SoundEffects)
  46. add_subdirectory (15_Navigation)
  47. add_subdirectory (16_Chat)
  48. add_subdirectory (17_SceneReplication)
  49. add_subdirectory (18_CharacterDemo)
  50. add_subdirectory (19_VehicleDemo)
  51. add_subdirectory (20_HugeObjectCount)
  52. if (ENABLE_ANGELSCRIPT)
  53. add_subdirectory (21_AngelScriptIntegration)
  54. endif ()
  55. if (ENABLE_LUA)
  56. add_subdirectory (22_LuaIntegration)
  57. endif ()
  58. add_subdirectory (23_Water)