Changeset - 6c2ef4c9d871
[Not reviewed]
0 1 1
Jan Kaluza - 13 years ago 2012-03-06 12:49:36
hanzz.k@gmail.com
place for python binding
2 files changed with 14 insertions and 0 deletions:
0 comments (0 inline, 0 general)
plugin/CMakeLists.txt
Show inline comments
 
ADD_SUBDIRECTORY(cpp)
 
ADD_SUBDIRECTORY(python)
plugin/python/CMakeLists.txt
Show inline comments
 
new file 100644
 
cmake_minimum_required(VERSION 2.6)
 
 
if (PROTOBUF_FOUND)
 
    ADD_CUSTOM_COMMAND(
 
        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/protocol_pb2.py
 
        COMMAND ${PROTOBUF_PROTOC_EXECUTABLE} --python_out  ${CMAKE_CURRENT_BINARY_DIR} --proto_path ${CMAKE_CURRENT_BINARY_DIR}/../../include/transport/ ${CMAKE_CURRENT_BINARY_DIR}/../../include/transport/protocol.proto
 
        COMMENT "Running Python protocol buffer compiler on protocol.proto"
 
        DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/../../include/transport/protocol.proto
 
    )
 
    ADD_CUSTOM_TARGET(pb-python DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/protocol_pb2.py)
 
endif()
 
 
0 comments (0 inline, 0 general)