A 2D tile-based sandbox game.
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 782B

1234567891011121314151617181920212223242526
  1. add_library(core.mod SHARED
  2. src/main.cc
  3. src/DefaultWorldGen.cc
  4. src/entities/PlayerEntity.cc
  5. src/entities/ItemStackEntity.cc)
  6. set_target_properties(core.mod PROPERTIES OUTPUT_NAME mod PREFIX "")
  7. target_link_libraries(core.mod libswan ${libraries})
  8. set(assets
  9. assets/entity/player-still.png
  10. assets/entity/player-still.toml
  11. assets/entity/player-running.png
  12. assets/entity/player-running.toml
  13. assets/tile/grass.png
  14. assets/tile/stone.png
  15. assets/tile/dirt.png
  16. assets/tile/leaves.png
  17. assets/tile/tree-trunk.png
  18. assets/tile/torch.png
  19. assets/misc/background-cave.png)
  20. foreach(a ${assets})
  21. configure_file("${a}" "${a}" COPYONLY)
  22. endforeach(a)
  23. install(TARGETS core.mod DESTINATION swan/core.mod)
  24. install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/assets DESTINATION swan/core.mod)