cmake_minimum_required(VERSION 3.7) project(MetaBallVisualizer) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CmakeFinders") find_package(SDL2) find_package(SDL2_ttf) include_directories(${SDL2_INCLUDE_DIR} ${SDL2_TTF_INCLUDE_DIRS}) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES main.cpp GameCore.cpp Control/Input.cpp Graphics/MetaField.cpp Graphics/Renderer.cpp constantes.h) add_executable(MetaBallVisualizer ${SOURCE_FILES}) target_link_libraries(MetaBallVisualizer ${SDL2_LIBRARY} ${SDL2_TTF_LIBRARIES})