Skip to content

Commit

Permalink
refactor: rename mock_cxx libs
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Nov 21, 2024
1 parent 6278469 commit ed1953e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(project
add_subdirectory(extern/pybind11)

## Create the Python extension module from C++ source files
set(SOURCES libs/src_mock_cxx/mock.cpp)
set(SOURCES libs/mock_bindcxx/mock.cpp)
pybind11_add_module(mock_cxx MODULE ${SOURCES})

# ## Link any necessary libraries (if needed)
Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen/doxygen.dox
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = ../libs/src_mock_cxx/
INPUT = ../libs/mock_bindcxx/

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

# Integrate doxygen with sphinx via breathe
breathe_projects = {
"src_mock_cxx": "../build/doxygen/xml/",
"mock_bindcxx": "../build/doxygen/xml/",
}

breathe_default_project = "proj"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Contents
thermo/index
pympdata_bulk/index
src_mock_py/index
src_mock_cxx/index
mock_bindcxx/index
utility_functions/index

GitHub Repo <https://github.com/yoctoyotta1024/microphysics_testcases.git>
Expand Down
6 changes: 3 additions & 3 deletions docs/source/src_mock_cxx/mock.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
C++ Mock Module
===============

Header file: ``<libs/src_mock_cxx/mock.hpp>``
`[source] <https://github.com/yoctoyotta1024/microphysics_testcases/blob/main/libs/src_mock_cxx/mock.hpp>`_
Header file: ``<libs/mock_bindcxx/mock.hpp>``
`[source] <https://github.com/yoctoyotta1024/microphysics_testcases/blob/main/libs/mock_bindcxx/mock.hpp>`_

.. doxygenfunction:: area_circle
:project: src_mock_cxx
:project: mock_bindcxx
2 changes: 1 addition & 1 deletion libs/src_mock_cxx/mock.cpp → libs/mock_bindcxx/mock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* ----- Microphysics Test Cases -----
* File: mock.cpp
* Project: src_mock_cxx
* Project: mock_bindcxx
* Created Date: Wednesday 28th February 2024
* Author: Clara Bayley (CB)
* Additional Contributors:
Expand Down
8 changes: 4 additions & 4 deletions libs/src_mock_cxx/mock.hpp → libs/mock_bindcxx/mock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* ----- Microphysics Test Cases -----
* File: mock.hpp
* Project: src_mock_cxx
* Project: mock_bindcxx
* Created Date: Tuesday 27th February 2024
* Author: Clara Bayley (CB)
* Additional Contributors:
Expand All @@ -19,8 +19,8 @@
*/


#ifndef LIBS_SRC_MOCK_CXX_MOCK_HPP_
#define LIBS_SRC_MOCK_CXX_MOCK_HPP_
#ifndef LIBS_MOCK_BINDCXX_MOCK_HPP_
#define LIBS_MOCK_BINDCXX_MOCK_HPP_

#include <numbers>
#include <pybind11/pybind11.h>
Expand Down Expand Up @@ -52,4 +52,4 @@ inline int add(const int ii, const int jj) {
return ii + jj;
}

#endif // LIBS_SRC_MOCK_CXX_MOCK_HPP_
#endif // LIBS_MOCK_BINDCXX_MOCK_HPP_

0 comments on commit ed1953e

Please sign in to comment.