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(gui LANGUAGES CXX) include(FetchContent) FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/PupperGump/SFML.git GIT_TAG puppergump_master) FetchContent_MakeAvailable(SFML) add_executable(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/main.cpp ${CMAKE_SOURCE_DIR}/include/gui.hpp ${CMAKE_SOURCE_DIR}/src/gui.cpp) target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include) target_link_libraries(${PROJECT_NAME} PRIVATE sfml-graphics sfml-window) 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})
There are "package managers" for C++ which can download / build / install the packages you want to use in your project, you only need to give a list of the package names to it. If you want something like that you should check out Conan and vcpkg.