forked from mattjuranek/NutriSort
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (25 loc) · 804 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
35 lines (25 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.27)
project(Project3DSA)
set(CMAKE_CXX_STANDARD 14)
add_executable(Project3DSA main.cpp
Food.h
Food.cpp)
include(FetchContent)
FetchContent_Declare(
cpr
GIT_REPOSITORY https://github.com/libcpr/cpr.git
GIT_TAG 1.6.2
)
FetchContent_Declare(
json
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG v3.11.2
)
FetchContent_MakeAvailable(cpr)
FetchContent_MakeAvailable(json)
if(json_POPULATED)
include_directories(${json_SOURCE_DIR}/single_include)
endif()
set(SFML_DIR "<sfml root prefix>/lib/cmake/SFML")
find_package(SFML 2.5.1 COMPONENTS system window graphics audio REQUIRED)
target_link_libraries(Project3DSA PRIVATE cpr::cpr sfml-system sfml-window sfml-graphics sfml-audio)