Skip to content

Commit

Permalink
bare metal install script
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Hughes committed Nov 17, 2023
1 parent 3ea91f1 commit 5ef6945
Show file tree
Hide file tree
Showing 14 changed files with 1,413 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CMake/crosslink_components.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ target_link_libraries( coulomb_data_broker
interp2d
utils
flags
netcdf
netcdf_cxx
netcdf_c
boris
fields )

Expand Down Expand Up @@ -147,7 +148,6 @@ target_link_libraries( coulomb_tests
interp2d
utils
flags
netcdf
boris
fields
Catch2::Catch2WithMain
Expand Down
1 change: 1 addition & 0 deletions CMake/netcdf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ find_path( netcdf_cxx_headers
NAMES netcdf
HINTS ${NETCDF_CXX_HEADERS_DIR} )

message( "netcdf_c_shared_lib: ${netcdf_c_shared_lib}" )
add_library( netcdf_cxx SHARED IMPORTED )
add_library( netcdf_c SHARED IMPORTED )

Expand Down
18 changes: 9 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
cmake -S $1 -B $2 -G Ninja \
-D NETCDF_C_HEADERS_DIR="/home/5n4/workshop/tree/build/external/netcdf-c-install/include" \
-D NETCDF_CXX_HEADERS_DIR="/home/5n4/workshop/tree/build/external/netcdf-cxx4-install/include" \
-D NETCDF_C_SHARED_LIB_DIR="/home/5n4/workshop/tree/build/external/netcdf-c-install/lib" \
-D NETCDF_CXX_SHARED_LIB_DIR="/home/5n4/workshop/tree/build/external/netcdf-cxx4-install/lib" \
-D LIBCONFIG_C_HEADERS_DIR="/home/5n4/workshop/tree/build/external/libconfig_install/include" \
-D LIBCONFIG_CXX_HEADERS_DIR="/home/5n4/workshop/tree/build/external/libconfig_install/include" \
-D LIBCONFIG_C_LIB_DIR="/home/5n4/workshop/tree/build/external/libconfig_install/lib" \
-D LIBCONFIG_CXX_LIB_DIR="/home/5n4/workshop/tree/build/external/libconfig_install/lib" \
-D NETCDF_C_HEADERS_DIR="/home/5n4/workshop/tree/external/netcdf-c-install/include" \
-D NETCDF_CXX_HEADERS_DIR="/home/5n4/workshop/tree/external/netcdf-cxx4-install/include" \
-D NETCDF_C_SHARED_LIB_DIR="/home/5n4/workshop/tree/external/netcdf-c-install/lib" \
-D NETCDF_CXX_SHARED_LIB_DIR="/home/5n4/workshop/tree/external/netcdf-cxx4-install/lib" \
-D LIBCONFIG_C_HEADERS_DIR="/home/5n4/workshop/tree/external/libconfig_install/include" \
-D LIBCONFIG_CXX_HEADERS_DIR="/home/5n4/workshop/tree/external/libconfig_install/include" \
-D LIBCONFIG_C_LIB_DIR="/home/5n4/workshop/tree/external/libconfig_install/lib" \
-D LIBCONFIG_CXX_LIB_DIR="/home/5n4/workshop/tree/external/libconfig_install/lib" \
&> $2/cmake_output.txt ;

cmake --build $2 -- -j 2 &> $2/build_output.txt
cmake --build $2 -- -j 0 &> $2/build_output.txt
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 5ef6945

Please sign in to comment.