2025-03-21 10:39:53 -04:00
|
|
|
# Define the library
|
|
|
|
|
network_sources = files(
|
2025-06-23 15:18:56 -04:00
|
|
|
'lib/network.cpp',
|
2025-06-26 15:13:46 -04:00
|
|
|
'lib/engine/engine_approx8.cpp',
|
|
|
|
|
'lib/engine/engine_graph.cpp',
|
2025-07-01 11:40:03 -04:00
|
|
|
'lib/engine/views/engine_adaptive.cpp',
|
|
|
|
|
'lib/engine/views/engine_defined.cpp',
|
2025-07-10 09:36:05 -04:00
|
|
|
'lib/engine/views/engine_multiscale.cpp',
|
|
|
|
|
'lib/engine/views/engine_priming.cpp',
|
|
|
|
|
'lib/engine/procedures/priming.cpp',
|
2025-07-14 14:50:49 -04:00
|
|
|
'lib/engine/procedures/construction.cpp',
|
2025-06-26 15:13:46 -04:00
|
|
|
'lib/reaction/reaction.cpp',
|
2025-06-29 14:53:39 -04:00
|
|
|
'lib/reaction/reaclib.cpp',
|
2025-07-01 11:40:03 -04:00
|
|
|
'lib/io/network_file.cpp',
|
2025-06-26 15:13:46 -04:00
|
|
|
'lib/solver/solver.cpp',
|
2025-07-01 11:40:03 -04:00
|
|
|
'lib/screening/screening_types.cpp',
|
|
|
|
|
'lib/screening/screening_weak.cpp',
|
|
|
|
|
'lib/screening/screening_bare.cpp',
|
2025-07-02 11:32:45 -04:00
|
|
|
'lib/partition/partition_rauscher_thielemann.cpp',
|
|
|
|
|
'lib/partition/partition_ground.cpp',
|
|
|
|
|
'lib/partition/composite/partition_composite.cpp',
|
2025-07-01 11:40:03 -04:00
|
|
|
'lib/utils/logging.cpp',
|
2025-03-21 10:39:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
|
boost_dep,
|
2025-03-21 14:03:18 -04:00
|
|
|
const_dep,
|
|
|
|
|
config_dep,
|
2025-06-17 09:43:43 -04:00
|
|
|
composition_dep,
|
2025-06-19 15:07:06 -04:00
|
|
|
cppad_dep,
|
2025-06-26 15:13:46 -04:00
|
|
|
log_dep,
|
|
|
|
|
xxhash_dep,
|
|
|
|
|
eigen_dep,
|
2025-03-21 10:39:53 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Define the libnetwork library so it can be linked against by other parts of the build system
|
2025-04-30 11:44:53 -04:00
|
|
|
libnetwork = library('network',
|
2025-03-21 10:39:53 -04:00
|
|
|
network_sources,
|
2025-06-23 15:18:56 -04:00
|
|
|
include_directories: include_directories('include'),
|
2025-03-21 10:39:53 -04:00
|
|
|
dependencies: dependencies,
|
|
|
|
|
install : true)
|
|
|
|
|
|
|
|
|
|
network_dep = declare_dependency(
|
2025-06-23 15:18:56 -04:00
|
|
|
include_directories: include_directories('include'),
|
2025-03-21 10:39:53 -04:00
|
|
|
link_with: libnetwork,
|
|
|
|
|
sources: network_sources,
|
|
|
|
|
dependencies: dependencies,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Make headers accessible
|
2025-06-23 15:18:56 -04:00
|
|
|
network_headers = files(
|
|
|
|
|
'include/gridfire/network.h',
|
2025-06-26 15:13:46 -04:00
|
|
|
'include/gridfire/engine/engine_abstract.h',
|
2025-07-01 11:40:03 -04:00
|
|
|
'include/gridfire/engine/views/engine_view_abstract.h',
|
2025-06-26 15:13:46 -04:00
|
|
|
'include/gridfire/engine/engine_approx8.h',
|
|
|
|
|
'include/gridfire/engine/engine_graph.h',
|
2025-07-01 11:40:03 -04:00
|
|
|
'include/gridfire/engine/views/engine_adaptive.h',
|
|
|
|
|
'include/gridfire/engine/views/engine_defined.h',
|
2025-07-10 09:36:05 -04:00
|
|
|
'include/gridfire/engine/views/engine_multiscale.h',
|
|
|
|
|
'include/gridfire/engine/views/engine_priming.h',
|
|
|
|
|
'include/gridfire/engine/procedures/priming.h',
|
2025-07-14 14:50:49 -04:00
|
|
|
'include/gridfire/engine/procedures/construction.h',
|
2025-06-26 15:13:46 -04:00
|
|
|
'include/gridfire/reaction/reaction.h',
|
2025-06-29 14:53:39 -04:00
|
|
|
'include/gridfire/reaction/reaclib.h',
|
2025-07-01 11:40:03 -04:00
|
|
|
'include/gridfire/io/network_file.h',
|
2025-06-26 15:13:46 -04:00
|
|
|
'include/gridfire/solver/solver.h',
|
2025-07-01 11:40:03 -04:00
|
|
|
'include/gridfire/screening/screening_abstract.h',
|
|
|
|
|
'include/gridfire/screening/screening_bare.h',
|
|
|
|
|
'include/gridfire/screening/screening_weak.h',
|
|
|
|
|
'include/gridfire/screening/screening_types.h',
|
2025-07-02 11:32:45 -04:00
|
|
|
'include/gridfire/partition/partition_abstract.h',
|
|
|
|
|
'include/gridfire/partition/partition_rauscher_thielemann.h',
|
|
|
|
|
'include/gridfire/partition/partition_ground.h',
|
|
|
|
|
'include/gridfire/partition/composite/partition_composite.h',
|
2025-07-01 11:40:03 -04:00
|
|
|
'include/gridfire/utils/logging.h',
|
2025-06-23 15:18:56 -04:00
|
|
|
)
|
2025-06-26 15:13:46 -04:00
|
|
|
install_headers(network_headers, subdir : 'gridfire')
|