Skip to content

Commit 8261956

Browse files
committed
renamed python package from example to less ambiguous gtsam_example
1 parent 60bed89 commit 8261956

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

example/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This file should be used as a template for creating new projects with Python wrapping using the CMake tools
22

33
###################################################################################
4-
# 1. To create your own project, replace "example" with the actual name of your project
4+
# 1. To create your own project, replace "gtsam_example" with the actual name of your project
55
cmake_minimum_required(VERSION 3.0)
6-
project(example CXX C)
6+
project(gtsam_example CXX C)
77

88
###################################################################################
99
# 2. Set the python version
@@ -63,7 +63,7 @@ configure_file(${PROJECT_SOURCE_DIR}/setup.py ${PROJECT_BINARY_DIR}/cython/setup
6363

6464
###################################################################################
6565
# 10. Build Cython wrapper (CMake tracks the dependecy to link with GTSAM through our project's static library)
66-
wrap_and_install_library_cython("example.h" # interface_header
66+
wrap_and_install_library_cython("gtsam_example.h" # interface_header
6767
"" # extra imports
6868
"./${PROJECT_NAME}" # install path
6969
"gtsam;${PROJECT_NAME}" # library to link with
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,23 @@
1010
* -------------------------------------------------------------------------- */
1111

1212
/**
13-
* @file example.h
13+
* @file gtsam_example.h
1414
* @brief Example wrapper interface file for Python
1515
* @author Varun Agrawal
1616
*/
1717

18-
// This is an interface file for automatic Python wrapper generation. See
19-
// gtsam.h for full documentation and more examples.
18+
// This is an interface file for automatic Python wrapper generation.
19+
// See gtsam.h for full documentation and more examples.
2020

2121
#include <src/greeting.h>
2222

23+
// The namespace should be the same as in the c++ source code.
2324
namespace example {
2425

2526
class Greeting {
26-
Greeting();
27-
void sayHello() const;
28-
void sayGoodbye() const;
27+
Greeting();
28+
void sayHello() const;
29+
void sayGoodbye() const;
2930
};
3031

31-
}
32+
} // namespace example

0 commit comments

Comments
 (0)