CMakeLists.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Copyright (c) 2008-2014 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. if (URHO3D_PHYSICS)
  43. add_subdirectory (11_Physics)
  44. add_subdirectory (12_PhysicsStressTest)
  45. add_subdirectory (13_Ragdolls)
  46. endif ()
  47. add_subdirectory (14_SoundEffects)
  48. if (URHO3D_NAVIGATION)
  49. add_subdirectory (15_Navigation)
  50. endif ()
  51. if (URHO3D_NETWORK)
  52. add_subdirectory (16_Chat)
  53. endif ()
  54. if (URHO3D_NETWORK AND URHO3D_PHYSICS)
  55. add_subdirectory (17_SceneReplication)
  56. add_subdirectory (18_CharacterDemo)
  57. add_subdirectory (19_VehicleDemo)
  58. endif ()
  59. add_subdirectory (20_HugeObjectCount)
  60. if (URHO3D_ANGELSCRIPT)
  61. add_subdirectory (21_AngelScriptIntegration)
  62. endif ()
  63. if (URHO3D_LUA)
  64. add_subdirectory (22_LuaIntegration)
  65. endif ()
  66. add_subdirectory (23_Water)
  67. if (URHO3D_URHO2D)
  68. add_subdirectory (24_Urho2DSprite)
  69. add_subdirectory (25_Urho2DParticle)
  70. add_subdirectory (27_Urho2DPhysics)
  71. add_subdirectory (28_Urho2DPhysicsRope)
  72. add_subdirectory (32_Urho2DConstraints)
  73. add_subdirectory (33_Urho2DSpriterAnimation)
  74. add_subdirectory (36_Urho2DTileMap)
  75. endif ()
  76. add_subdirectory (26_ConsoleInput)
  77. add_subdirectory (29_SoundSynthesis)
  78. add_subdirectory (30_LightAnimation)
  79. add_subdirectory (31_MaterialAnimation)
  80. add_subdirectory (34_DynamicGeometry)
  81. add_subdirectory (35_SignedDistanceFieldText)
  82. add_subdirectory (37_UIDrag)