123456789101112131415161718192021222324252627282930 |
- add_library(cygnet SHARED
- src/builtins.cc
- src/glutil.cc
- src/GlWrappers.cc
- src/Image.cc
- src/RenderQueue.cc
- src/Window.cc)
- target_link_libraries(cygnet PUBLIC SDL2 SDL2_image GLESv2)
- target_include_directories(cygnet
- PUBLIC include
- PRIVATE include/cygnet)
-
- add_executable(cygnet-hello-triangle
- samples/hello-triangle/hello-triangle.cc)
- target_link_libraries(cygnet-hello-triangle PUBLIC cygnet)
-
- add_executable(cygnet-hello-texture
- samples/hello-texture/hello-texture.cc)
- target_link_libraries(cygnet-hello-texture PUBLIC cygnet)
-
- add_executable(cygnet-game
- samples/game/game.cc)
- target_link_libraries(cygnet-game PUBLIC cygnet)
-
- set(assets
- samples/game/assets/player.png)
- foreach(a ${assets})
- configure_file("${a}" "${a}" COPYONLY)
- endforeach(a)
|