Changeset 4b1e6fe in nscp for build/cmake/NSCPPBuffer.cmake


Ignore:
Timestamp:
08/30/11 23:08:13 (21 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
1307e3f5
Parents:
60e6c18
Message:
  • Fixed uncaught exception in test client
  • Added protocol buffers to source (needs to be added to installer as well)
  • Added example python protocol buffer handler
  • Added lib folder to python scripting (and automagicall load)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • build/cmake/NSCPPBuffer.cmake

    rafd42f1 r4b1e6fe  
    9191    SET(PB_TARGET_INCLUDE ${INCL}) 
    9292    #configure_file(${ABS_FIL}.h.in ${ABS_FIL}.h) 
     93    file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/scripts/python/lib) 
    9394 
    9495      ADD_CUSTOM_COMMAND( 
    95         OUTPUT ${${VAR}} ${INCL} 
     96        OUTPUT ${${VAR}} ${INCL}  ${PROJECT_BINARY_DIR}/scripts/python/lib/${FIL_WE}_pb2.py 
    9697        COMMAND  ${PROTOBUF_PROTOC_EXECUTABLE} 
    97         ARGS --cpp_out  ${CMAKE_CURRENT_BINARY_DIR} --proto_path ${CMAKE_CURRENT_SOURCE_DIR} ${ABS_FIL} 
     98        ARGS --cpp_out  ${CMAKE_CURRENT_BINARY_DIR} --python_out ${PROJECT_BINARY_DIR}/scripts/python/lib --proto_path ${CMAKE_CURRENT_SOURCE_DIR} ${ABS_FIL} 
    9899        DEPENDS ${ABS_FIL} 
    99100        COMMENT "Running protocol buffer compiler on ${FIL} - ${PROTOBUF_PROTOC_EXECUTABLE}" VERBATIM ) 
Note: See TracChangeset for help on using the changeset viewer.