CMakeLists.txt 558 B

1234567891011121314151617181920212223
  1. cmake_minimum_required(VERSION 3.7)
  2. project(MetaBallVisualizer)
  3. set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CmakeFinders")
  4. find_package(SDL2)
  5. find_package(SDL2_ttf)
  6. include_directories(${SDL2_INCLUDE_DIR} ${SDL2_TTF_INCLUDE_DIRS})
  7. set(CMAKE_CXX_STANDARD 11)
  8. set(SOURCE_FILES
  9. main.cpp
  10. GameCore.cpp
  11. Control/Input.cpp
  12. Graphics/MetaField.cpp
  13. Graphics/Renderer.cpp
  14. constantes.h)
  15. add_executable(MetaBallVisualizer ${SOURCE_FILES})
  16. target_link_libraries(MetaBallVisualizer ${SDL2_LIBRARY} ${SDL2_TTF_LIBRARIES})