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

123456789101112131415161718192021222324252627282930
  1. add_library(cygnet SHARED
  2. src/builtins.cc
  3. src/glutil.cc
  4. src/GlWrappers.cc
  5. src/Image.cc
  6. src/RenderQueue.cc
  7. src/Window.cc)
  8. target_link_libraries(cygnet PUBLIC SDL2 SDL2_image GLESv2)
  9. target_include_directories(cygnet
  10. PUBLIC include
  11. PRIVATE include/cygnet)
  12. add_executable(cygnet-hello-triangle
  13. samples/hello-triangle/hello-triangle.cc)
  14. target_link_libraries(cygnet-hello-triangle PUBLIC cygnet)
  15. add_executable(cygnet-hello-texture
  16. samples/hello-texture/hello-texture.cc)
  17. target_link_libraries(cygnet-hello-texture PUBLIC cygnet)
  18. add_executable(cygnet-game
  19. samples/game/game.cc)
  20. target_link_libraries(cygnet-game PUBLIC cygnet)
  21. set(assets
  22. samples/game/assets/player.png)
  23. foreach(a ${assets})
  24. configure_file("${a}" "${a}" COPYONLY)
  25. endforeach(a)