-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
19 lines (13 loc) · 1.93 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.6)
project(search_alg)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
set(SOURCE_FILES main.cpp src/graph/Graph.cpp src/graph/Graph.h src/graph/Vertex.cpp src/graph/Vertex.h src/Command.cpp src/Command.h src/DeleteConnectionAction.cpp src/DeleteConnectionAction.h src/GraphDisplay.cpp src/GraphDisplay.h src/graph/Type.h src/GridDrawer.cpp src/GridDrawer.h src/graph/MazeCreator.cpp src/graph/MazeCreator.h src/graph/shortest_path/GraphSearch.cpp src/graph/shortest_path/GraphSearch.h src/graph/shortest_path/DijkstraSearch.cpp src/graph/shortest_path/DijkstraSearch.h src/graph/shortest_path/DFSSearch.cpp src/graph/shortest_path/DFSSearch.h src/graph/shortest_path/BFSSearch.cpp src/graph/shortest_path/BFSSearch.h src/graph/shortest_path/BellmanFordSearch.cpp src/graph/shortest_path/BellmanFordSearch.h src/graph/shortest_path/AStarSearch.cpp src/graph/shortest_path/AStarSearch.h src/graph/shortest_path/GBestFirstSearch.cpp src/graph/shortest_path/GBestFirstSearch.h src/graph/shortest_path/heuristic/Heuristic.cpp src/graph/shortest_path/heuristic/Heuristic.h src/graph/shortest_path/heuristic/EuclideanDistance.cpp src/graph/shortest_path/heuristic/EuclideanDistance.h src/graph/shortest_path/heuristic/ManhattenDistance.cpp src/graph/shortest_path/heuristic/ManhattenDistance.h src/graph/shortest_path/heuristic/DiagonalDistance.cpp src/graph/shortest_path/heuristic/DiagonalDistance.h src/graph/KruskalMST.cpp src/graph/KruskalMST.h src/graph/DisjointSet.cpp src/graph/DisjointSet.h src/graph/PrimMST.cpp src/graph/PrimMST.h)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin/)
add_executable(search_alg ${SOURCE_FILES})
# Detect and add SFML
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
find_package(SFML 2 REQUIRED system window graphics network audio)
if(SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} ${SFML_LIBRARIES})
endif()