-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (37 loc) · 1.05 KB
/
Copy pathCMakeLists.txt
File metadata and controls
45 lines (37 loc) · 1.05 KB
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
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.20)
project(GRAPHS_GUI)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED On)
configure_file(${PROJECT_SOURCE_DIR}/src/config.h.in ${PROJECT_SOURCE_DIR}/src/config.h)
include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 3.0.2
GIT_SHALLOW ON
EXCLUDE_FROM_ALL
SYSTEM)
FetchContent_Declare(Graphs
GIT_REPOSITORY https://github.com/Przemyslawmd/Graphs.git
GIT_TAG main)
FetchContent_MakeAvailable(SFML Graphs)
add_executable(GraphsGui
"src/main.cpp"
"src/client.cpp"
"src/graphWindow.cpp"
"src/graph/connection.cpp"
"src/graph/model.cpp"
"src/graph/node.cpp"
"src/graph/tempConnection.cpp"
"src/services/iofile.cpp"
"src/services/keys.cpp"
"src/gui/input.cpp"
"src/gui/button.cpp"
"src/gui/lines.cpp"
"src/gui/menu.cpp"
"src/gui/radio.cpp")
target_include_directories(
GraphsGui
PRIVATE
GraphsLib
"src")
target_link_libraries(GraphsGui PRIVATE SFML::Graphics GraphsLib)