Skip to content

Commit cfdbec8

Browse files
committed
Split headers folder in headers + sources
1 parent 3061b52 commit cfdbec8

File tree

19 files changed

+22
-22
lines changed

19 files changed

+22
-22
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 20)
77
set(CMAKE_CXX_STANDARD_REQUIRED ON)
88
set(CMAKE_CXX_EXTENSIONS OFF)
99

10-
file(GLOB SOURCES "src/dsm/headers/*.cpp" "src/dsm/utility/*.cpp")
10+
file(GLOB SOURCES "src/dsm/sources/*.cpp" "src/dsm/utility/*.cpp")
1111

1212
add_library(dsm STATIC ${SOURCES})
1313
target_include_directories(dsm PUBLIC

benchmark/Dynamics/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set(EXECUTABLE_OUTPUT_PATH ../../)
1414
include_directories(../../src/dsm/headers)
1515
include_directories(../../src/dsm/utility/)
1616

17-
file(GLOB SOURCES "../../src/dsm/headers/*.cpp")
17+
file(GLOB SOURCES "../../src/dsm/sources/*.cpp", "../../src/dsm/utility/*.cpp")
1818

1919
# Compile
2020
add_executable(bench_dynamics.out BenchDynamics.cpp ${SOURCES})

benchmark/Graph/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set(EXECUTABLE_OUTPUT_PATH ../../)
1414
include_directories(../../src/dsm/headers/)
1515
include_directories(../../src/dsm/utility/)
1616

17-
file(GLOB SOURCES "../../src/dsm/headers/*.cpp")
17+
file(GLOB SOURCES "../../src/dsm/sources/*.cpp", "../../src/dsm/utility/*.cpp")
1818

1919
# Compile
2020
add_executable(bench_graph.out BenchGraph.cpp ${SOURCES})

benchmark/Street/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set(EXECUTABLE_OUTPUT_PATH ../../)
1414
include_directories(../../src/dsm/headers)
1515
include_directories(../../src/dsm/utility/)
1616

17-
file(GLOB SOURCES "../../src/dsm/headers/*.cpp")
17+
file(GLOB SOURCES "../../src/dsm/sources/*.cpp", "../../src/dsm/utility/*.cpp")
1818

1919
# Compile
2020
add_executable(bench_street.out BenchStreet.cpp ${SOURCES})

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set(EXECUTABLE_OUTPUT_PATH ../)
1919

2020
# add as executable all cpp files into '.' folder
2121
file(GLOB SOURCES "*.cpp")
22-
file(GLOB SRC_SOURCES "../src/dsm/headers/*.cpp")
22+
file(GLOB SRC_SOURCES "../src/dsm/sources/*.cpp", "../src/dsm/utility/*.cpp")
2323

2424
# Loop through each source file and create an executable
2525
foreach(SOURCE ${SOURCES})

profiling/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ string(APPEND CMAKE_CXX_FLAGS "-Wall -Wextra -Os")
1313
# Set the folder for the executable
1414
set(EXECUTABLE_OUTPUT_PATH ../)
1515

16-
file(GLOB SOURCES "../src/dsm/headers/*.cpp")
16+
file(GLOB SOURCES "../src/dsm/sources/*.cpp" "../src/dsm/utility/*.cpp")
1717

1818
# Define the executable
1919
add_executable(prof.out main.cpp ${SOURCES})
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
#include "DijkstraWeights.hpp"
3-
#include "Graph.hpp"
2+
#include "../headers/DijkstraWeights.hpp"
3+
#include "../headers/Graph.hpp"
44

55
namespace dsm {
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "Edge.hpp"
2-
#include "../utility/Logger.hpp"
1+
#include "../headers/Edge.hpp"
2+
#include "../headers/../utility/Logger.hpp"
33

44
#include <cassert>
55
#include <cmath>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "FirstOrderDynamics.hpp"
1+
#include "../headers/FirstOrderDynamics.hpp"
22

33
namespace dsm {
44
FirstOrderDynamics::FirstOrderDynamics(Graph& graph,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#include "Graph.hpp"
2+
#include "../headers/Graph.hpp"
33

44
namespace dsm {
55
Graph::Graph()

0 commit comments

Comments
 (0)