CMakeLists.txt 831 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. set(SAMPLE_NAME "lua_invaders")
  2. set(TARGET_NAME "${RMLUI_SAMPLE_PREFIX}${SAMPLE_NAME}")
  3. add_executable(${TARGET_NAME} WIN32
  4. src/DecoratorDefender.cpp
  5. src/DecoratorDefender.h
  6. src/DecoratorStarfield.cpp
  7. src/DecoratorStarfield.h
  8. src/Defender.cpp
  9. src/Defender.h
  10. src/ElementGame.cpp
  11. src/ElementGame.h
  12. src/ElementGameInstancer.cpp
  13. src/ElementGameInstancer.h
  14. src/Game.cpp
  15. src/Game.h
  16. src/GameDetails.cpp
  17. src/GameDetails.h
  18. src/HighScores.cpp
  19. src/HighScores.h
  20. src/Invader.cpp
  21. src/Invader.h
  22. src/LuaInterface.cpp
  23. src/LuaInterface.h
  24. src/main.cpp
  25. src/Mothership.cpp
  26. src/Mothership.h
  27. src/Shield.cpp
  28. src/Shield.h
  29. src/Sprite.cpp
  30. src/Sprite.h
  31. )
  32. set_common_target_options(${TARGET_NAME})
  33. target_link_libraries(${TARGET_NAME} PRIVATE
  34. rmlui_shell
  35. rmlui_lua
  36. RmlUi::External::Lua
  37. )
  38. install_sample_target(${TARGET_NAME})