CMakeLists.txt 888 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. add_executable(ASCCI_Space_Destroyer_CLion ${SOURCE_FILES})
  30. target_link_libraries(ASCCI_Space_Destroyer_CLion ${SDL_LIBRARY} ${SDLGFX_LIBRARY})
  31. file(COPY Resources DESTINATION .)