Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ set_property( TARGET ${PROJECT_NAME} PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE )
# set the right output file name for the the python core module library
set_target_properties( ${PROJECT_NAME} PROPERTIES PREFIX "" OUTPUT_NAME "deviceaccess" )

target_compile_definitions(${PROJECT_NAME} PRIVATE
PYTHON_MODULE_VERSION="${${PROJECT_NAME}_VERSION}")

# Copy Python part to build directory (required for tests to run)
file( COPY mtca4u.py DESTINATION ${PROJECT_BINARY_DIR} )

Expand Down
1 change: 1 addition & 0 deletions src/deviceaccessPython.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,5 @@ PYBIND11_MODULE(deviceaccess, m) {
exc("Thread Interrupted");
}
});
m.attr("__version__") = PYTHON_MODULE_VERSION;
}