CMakeLists.txt 919 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. cmake_minimum_required(VERSION 3.7)
  2. project(ASCCI_Space_Destroyer_CLion)
  3. set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR})
  4. find_package(SDL)
  5. find_package(SDL_gfx)
  6. include_directories(${SDL_INCLUDE_DIR} ${SDLGFX_INCLUDE_DIR})
  7. set(CMAKE_CXX_STANDARD 11)
  8. set(SOURCE_FILES
  9. main.cpp
  10. Ally.cpp
  11. Foe.cpp
  12. Game.cpp
  13. HitManager.cpp
  14. Score.cpp
  15. Shot.cpp
  16. SpaceShip.cpp
  17. WaveManager.cpp
  18. Control/Input.cpp
  19. Control/InputAndJoy.cpp
  20. Shot/Brexit.cpp
  21. Shot/Cutter.cpp
  22. Shot/Disper.cpp
  23. Shot/Gun.cpp
  24. Shot/Hecto.cpp
  25. Shot/Missile.cpp
  26. Shot/Part.cpp
  27. Shot/Photo.cpp
  28. Shot/Sniper.cpp
  29. ${SDLGFX_SOURCE_DIR}/SDL_gfxPrimitives.c)
  30. add_executable(ASCCI_Space_Destroyer_CLion ${SOURCE_FILES})
  31. target_link_libraries(ASCCI_Space_Destroyer_CLion ${SDL_LIBRARY})
  32. file(COPY Resources DESTINATION .)