2023-03-28 02:30:11 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-08-29 04:25:43 +08:00
|
|
|
index 4a3d31e..82611ef 100644
|
2023-03-28 02:30:11 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-08-29 04:25:43 +08:00
|
|
|
@@ -58,12 +58,15 @@ if(nanopb_BUILD_GENERATOR)
|
2023-03-28 02:30:11 +08:00
|
|
|
install(
|
|
|
|
FILES ${PROJECT_BINARY_DIR}/${generator_proto_py_file}
|
|
|
|
${generator_proto_file}
|
|
|
|
- DESTINATION ${PYTHON_INSTDIR}/proto/
|
2023-08-29 04:25:43 +08:00
|
|
|
+ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/
|
2023-03-28 02:30:11 +08:00
|
|
|
)
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
install( FILES generator/proto/_utils.py
|
|
|
|
- DESTINATION ${PYTHON_INSTDIR}/proto/ )
|
2023-08-29 04:25:43 +08:00
|
|
|
+ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/ )
|
|
|
|
+
|
|
|
|
+ install( FILES generator/proto/__init__.py
|
|
|
|
+ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/ )
|
2023-03-28 02:30:11 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WIN32)
|