CMakeLists.txt 864 B

1234567891011121314151617181920212223242526272829303132
  1. cmake_minimum_required(VERSION 3.7)
  2. project(SpaceExpansion)
  3. set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CmakeFinders")
  4. find_package(SDL2)
  5. find_package(SDL2_image)
  6. find_package(SDL2_ttf)
  7. include_directories(${SDL2_INCLUDE_DIR} ${SDL2_IMAGE_INCLUDE_DIR} ${SDL2_TTF_INCLUDE_DIRS})
  8. set(CMAKE_CXX_STANDARD 11)
  9. set(SOURCE_FILES
  10. main.cpp
  11. GameCore.cpp
  12. Control/Input.cpp
  13. Graphics/Renderer.cpp
  14. Graphics/Visual.cpp
  15. Contents/Universe.cpp
  16. Contents/Planet.cpp
  17. Contents/StarShip.cpp
  18. Contents/Stock.cpp
  19. Maths/b2Angle.cpp
  20. Control/Camera.cpp
  21. Rules/PlanetStep.cpp
  22. Rules/PeopleExpGrowth.cpp
  23. Rules/PeopleMinimalGrowth.cpp)
  24. add_executable(SpaceExpansion ${SOURCE_FILES})
  25. target_link_libraries(SpaceExpansion ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY} ${SDL2_TTF_LIBRARIES})