Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.25)
- project(lab10)
- set (CMAKE_CXX_STANDARD 17)
- include_directories(lib/MVC_weather)
- find_package(nlohmann_json)
- add_executable(main main.cpp)
- if(WIN32) # Install dlls in the same directory as the executable on Windows
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
- endif()
- include(FetchContent)
- FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git
- GIT_TAG 0817715923c9705e68994eb52ef9df3f6845beba)
- FetchContent_MakeAvailable(cpr)
- target_link_libraries(main PRIVATE nlohmann_json::nlohmann_json)
- target_link_libraries(main PRIVATE cpr::cpr)
- add_subdirectory(lib/MVC_weather)
- target_link_libraries(main PUBLIC MVC)
Add Comment
Please, Sign In to add comment