cmake_minimum_required(VERSION 3.7) project(SpaceExpansion) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CmakeFinders") find_package(SDL2) find_package(SDL2_image) find_package(SDL2_ttf) include_directories(${SDL2_INCLUDE_DIR} ${SDL2_IMAGE_INCLUDE_DIR} ${SDL2_TTF_INCLUDE_DIRS}) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES main.cpp GameCore.cpp Control/Input.cpp Graphics/Renderer.cpp Graphics/Visual.cpp Contents/Universe.cpp Contents/Planet.cpp Contents/StarShip.cpp Contents/Stock.cpp Maths/b2Angle.cpp Control/Camera.cpp Rules/PlanetStep.cpp Rules/PeopleExpGrowth.cpp Rules/PeopleMinimalGrowth.cpp) add_executable(SpaceExpansion ${SOURCE_FILES}) target_link_libraries(SpaceExpansion ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY} ${SDL2_TTF_LIBRARIES})