2025-03-21 10:39:53 -04:00
|
|
|
# Define the library
|
|
|
|
|
network_sources = files(
|
2025-06-19 09:42:20 -04:00
|
|
|
'private/network.cpp',
|
|
|
|
|
'private/approx8.cpp',
|
|
|
|
|
'private/netgraph.cpp'
|
2025-03-21 10:39:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
network_headers = files(
|
2025-03-21 14:03:18 -04:00
|
|
|
'public/network.h',
|
2025-06-19 09:42:20 -04:00
|
|
|
'public/approx8.h',
|
|
|
|
|
'public/netgraph.h',
|
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-18 15:22:58 -04:00
|
|
|
reaclib_reactions_dep,
|
2025-06-19 15:07:06 -04:00
|
|
|
cppad_dep,
|
2025-06-21 13:18:38 -04:00
|
|
|
log_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,
|
|
|
|
|
include_directories: include_directories('public'),
|
|
|
|
|
dependencies: dependencies,
|
|
|
|
|
install : true)
|
|
|
|
|
|
|
|
|
|
network_dep = declare_dependency(
|
|
|
|
|
include_directories: include_directories('public'),
|
|
|
|
|
link_with: libnetwork,
|
|
|
|
|
sources: network_sources,
|
|
|
|
|
dependencies: dependencies,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Make headers accessible
|
2025-06-21 16:54:23 -04:00
|
|
|
install_headers(network_headers, subdir : 'gridfire/gridfire')
|