File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 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
55cmake_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
Original file line number Diff line number Diff line change 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.
2324namespace example {
2425
2526class 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
You can’t perform that action at this time.
0 commit comments