CMakeLists.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. set(GAME_NAME sample-browser)
  2. set(GAME_SRC
  3. src/Audio3DSample.cpp
  4. src/Audio3DSample.h
  5. src/BillboardSample.cpp
  6. src/BillboardSample.h
  7. src/CreateSceneSample.cpp
  8. src/CreateSceneSample.h
  9. src/FirstPersonCamera.cpp
  10. src/FirstPersonCamera.h
  11. src/FormsSample.cpp
  12. src/FormsSample.h
  13. src/GamepadSample.cpp
  14. src/GamepadSample.h
  15. src/GestureSample.cpp
  16. src/GestureSample.h
  17. src/Grid.cpp
  18. src/Grid.h
  19. src/InputSample.cpp
  20. src/InputSample.h
  21. src/LightSample.cpp
  22. src/LightSample.h
  23. src/LoadSceneSample.cpp
  24. src/LoadSceneSample.h
  25. src/MeshBatchSample.cpp
  26. src/MeshBatchSample.h
  27. src/MeshPrimitiveSample.cpp
  28. src/MeshPrimitiveSample.h
  29. src/ParticlesSample.cpp
  30. src/ParticlesSample.h
  31. src/PhysicsCollisionObjectSample.cpp
  32. src/PhysicsCollisionObjectSample.h
  33. src/PostProcessSample.cpp
  34. src/PostProcessSample.h
  35. src/SpriteBatchSample.cpp
  36. src/SpriteBatchSample.h
  37. src/TerrainSample.cpp
  38. src/TerrainSample.h
  39. src/Sample.cpp
  40. src/Sample.h
  41. src/SamplesGame.cpp
  42. src/SamplesGame.h
  43. src/TextSample.cpp
  44. src/TextSample.h
  45. src/TextureSample.cpp
  46. src/TextureSample.h
  47. src/TriangleSample.cpp
  48. src/TriangleSample.h
  49. src/WaterSample.cpp
  50. src/WaterSample.h
  51. )
  52. add_executable(${GAME_NAME}
  53. ${GAME_SRC}
  54. )
  55. target_link_libraries(${GAME_NAME} ${GAMEPLAY_LIBRARIES})
  56. set_target_properties(${GAME_NAME} PROPERTIES
  57. OUTPUT_NAME "${GAME_NAME}"
  58. CLEAN_DIRECT_OUTPUT 1
  59. )
  60. source_group(res FILES ${GAME_RES} ${GAMEPLAY_RES} ${GAMEPLAY_RES_SHADERS} ${GAMEPLAY_RES_UI})
  61. source_group(src FILES ${GAME_SRC})
  62. COPY_RES( ${GAME_NAME} )
  63. COPY_RES_EXTRA( ${GAME_NAME} ${CMAKE_SOURCE_DIR}/gameplay
  64. res/logo_powered_white.png
  65. res/shaders/*
  66. res/ui/*
  67. )