-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (35 loc) · 1.78 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.15)
project(SortsAnalyzer VERSION 1.0)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "-O3")
add_subdirectory(GUI/constants)
add_subdirectory(GUI/controls)
add_subdirectory(GUI/custom_controls)
add_subdirectory(GUI/events)
add_subdirectory(GUI/plot)
add_subdirectory(GUI/clickable)
add_subdirectory(GUI/button_trigger)
add_subdirectory(GUI/triggers)
add_subdirectory(benchmark/benchmark)
add_subdirectory(benchmark/sorts)
add_subdirectory(app)
add_executable(Main main.cpp)
target_include_directories(Main
PUBLIC "${PROJECT_BINARY_DIR}"
PUBLIC "${PROJECT_SOURCE_DIR}/GUI/controls"
PUBLIC "${PROJECT_SOURCE_DIR}/GUI/constants"
PUBLIC "${PROJECT_SOURCE_DIR}/GUI/events"
PUBLIC "${PROJECT_SOURCE_DIR}/GUI/plot"
PUBLIC "${PROJECT_SOURCE_DIR}/benchmark/sorts"
PUBLIC "${PROJECT_SOURCE_DIR}/benchmark/benchmark"
PUBLIC "${PROJECT_SOURCE_DIR}/GUI/custom_controls"
PUBLIC "${PROJECT_SOURCE_DIR}/GUI/clickable"
PUBLIC "${PROJECT_SOURCE_DIR}/GUI/button_trigger"
PUBLIC "${PROJECT_SOURCE_DIR}/GUI/triggers"
PUBLIC "${PROJECT_SOURCE_DIR}/app")
#look for SFML and add it
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/SFML/cmake-modules/")
find_package (SFML REQUIRED system window graphics network audio)
#we add the executable of the program
target_link_libraries(Main PUBLIC sfml-system sfml-window sfml-graphics sfml-network sfml-audio App Benchmark Sorts Controls CustomControls Constants Events Plot Clickable Button_trigger Triggers)