-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,5 @@ | |
*.out | ||
*.app | ||
|
||
build | ||
build | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
# Set the project name | ||
project(DijkstraCpp) | ||
project(dijkstra-cpp) | ||
|
||
# Specify the C++ standard | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
# Add include directories | ||
include_directories(include) | ||
add_subdirectory(dijkstra) | ||
|
||
# Add the executable | ||
file(GLOB SOURCES "src/*.cc") | ||
add_executable(DijkstraCpp ${SOURCES}) | ||
|
||
# Optionally, you can add any required libraries here | ||
# target_link_libraries(DijkstraCpp <library_name>) | ||
add_executable(dijkstra_main main.cc) | ||
target_include_directories(dijkstra_main PRIVATE ${CMAKE_SOURCE_DIR}/dijkstra) | ||
target_link_libraries(dijkstra_main dijkstra) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
file(GLOB SOURCES "*.cc") | ||
|
||
add_library(dijkstra STATIC ${SOURCES}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.