Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
cmake_minimum_required(VERSION 3.21) project(E10_sfmlObserver_exercise LANGUAGES CXX) include(FetchContent) FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git GIT_TAG 2.6.x) FetchContent_MakeAvailable(SFML) set(SOURCE_FILES GameApp.cpp GameApp.h Display.h GameCharacter.h GameCharacter.cpp MiniMapView.h MiniMapView.cpp VideogameMapView.h VideogameMapView.cpp Subject.h Observer.h) add_executable(${PROJECT_NAME} main.cpp ${SOURCE_FILES}) target_link_libraries(${PROJECT_NAME} PRIVATE sfml-graphics sfml-window sfml-system) target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) if (WIN32 AND BUILD_SHARED_LIBS) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $ $ COMMAND_EXPAND_LISTS) endif() install(TARGETS ${PROJECT_NAME})