File tree Expand file tree Collapse file tree 7 files changed +15
-5
lines changed
actions/install-dependencies Expand file tree Collapse file tree 7 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 88 - name : Install c++ libs
99 run : |
1010 sudo apt install libxerces-c-dev -y
11- sudo apt install libboost-program-options-dev -y
11+ sudo apt install build-essential libboost-system-dev libboost-thread-dev libboost- program-options-dev libboost-test -dev -y
1212 shell : bash
Original file line number Diff line number Diff line change 2020 steps :
2121 - name : Checkout
2222 uses : actions/checkout@v2
23+ - uses : ./.github/actions/install-dependencies
2324
2425 - name : Install clang-format
2526 run : |
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ jobs:
1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v4
22+ - uses : ./.github/actions/install-dependencies
2223
2324 - name : Install dependencies
2425 run : |
2526 sudo apt-get update
2627 sudo apt-get install -y doxygen
2728 sudo apt-get install -y graphviz
28- sudo apt-get install -y cmake
29+ sudo apt-get install -y cmake
2930
3031 - name : Build docs
3132 run : |
Original file line number Diff line number Diff line change @@ -30,8 +30,10 @@ endif()
3030list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules/)
3131
3232# project dependencies
33- include (spdlog )
33+ include (boost_program_options )
3434include (libxsd)
35+ include (spdlog)
36+ include (xercesc)
3537
3638# tests and documentation
3739include (gtest) #provides a BUILD_TESTS option
Original file line number Diff line number Diff line change 1+ # Load the Boost libraries
2+
3+ find_package (Boost COMPONENTS program_options REQUIRED)
Original file line number Diff line number Diff line change 1+ # Load the XercesC package
2+
3+ find_package (XercesC 3.2.0 REQUIRED)
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ list(REMOVE_ITEM PROJECT_SRC "${CMAKE_CURRENT_SOURCE_DIR}/MolSim.cpp")
99add_library (project_lib ${PROJECT_SRC}
1010 simulation/SimulationParams.cpp)
1111
12- target_include_directories (project_lib PUBLIC
12+ target_include_directories (project_lib PUBLIC
1313 ${libxsd_SOURCE_DIR}
1414 ${spdlog_SOURCE_DIR} /include )
1515
16- target_link_libraries (project_lib PUBLIC xerces-c boost_program_options spdlog::spdlog)
16+ target_link_libraries (project_lib PUBLIC XercesC::XercesC spdlog::spdlog Boost::program_options )
1717
1818add_executable (MolSim MolSim.cpp)
1919target_link_libraries (MolSim PUBLIC project_lib)
You can’t perform that action at this time.
0 commit comments