✨ Internal train network structure
- Defines Network, StopArea, StopPoints and JourneySections - Loads them from json using the build_from_json method
This commit is contained in:
parent
27c5a55400
commit
61aec3d856
9 changed files with 1877 additions and 0 deletions
|
|
@ -2,6 +2,17 @@ cmake_minimum_required(VERSION 4.0)
|
|||
|
||||
project(Trenesis)
|
||||
|
||||
# Dependencies
|
||||
add_subdirectory(ext/json)
|
||||
|
||||
include_directories(lib)
|
||||
add_library(trenesis)
|
||||
|
||||
target_sources(trenesis
|
||||
PRIVATE
|
||||
lib/trenesis/geojson.cpp
|
||||
lib/trenesis/network/graph.cpp
|
||||
)
|
||||
target_link_libraries(trenesis PUBLIC nlohmann_json::nlohmann_json)
|
||||
|
||||
add_subdirectory(tests)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue