Commit 5cd8f895 authored by Nicolas Mansard's avatar Nicolas Mansard Committed by Nicolas Mansard
Browse files

Added a wrapper for entities of dg.

parent fe7281de
...@@ -51,3 +51,4 @@ ADD_SUBDIRECTORY(doc) ...@@ -51,3 +51,4 @@ ADD_SUBDIRECTORY(doc)
SEARCH_FOR_BOOST() SEARCH_FOR_BOOST()
SETUP_PROJECT_FINALIZE() SETUP_PROJECT_FINALIZE()
...@@ -114,3 +114,24 @@ ENDFOREACH (SOURCE) ...@@ -114,3 +114,24 @@ ENDFOREACH (SOURCE)
INSTALL(FILES ${PYTHON_SOURCES_FULLPATH} INSTALL(FILES ${PYTHON_SOURCES_FULLPATH}
DESTINATION ${PYTHON_INSTALL_DIR}) DESTINATION ${PYTHON_INSTALL_DIR})
# --- ADD the wrap on the dg modules
INCLUDE(../cmake/python.cmake)
EXEC_PROGRAM("${PKG_CONFIG_EXECUTABLE}"
ARGS "--variable=plugindir" "dynamic-graph"
OUTPUT_VARIABLE "DYNAMIC_GRAPH_PLUGIN_DIR")
# Tracer plugin
ADD_DEPENDENCIES(${LIBRARY_NAME} MKDIR_tracer)
ADD_CUSTOM_TARGET(MKDIR_tracer mkdir -p ../lib/dynamic_graph/tracer)
SET(TRACER_PLUGIN ${DYNAMIC_GRAPH_PLUGIN_DIR}/tracer.so)
DYNAMIC_GRAPH_PYTHON_MODULE("tracer" ${TRACER_PLUGIN} tracer/wrap)
# TracerRealTime plugin
ADD_DEPENDENCIES(${LIBRARY_NAME} MKDIR_TracerRealTime)
ADD_CUSTOM_TARGET(MKDIR_TracerRealTime mkdir -p ../lib/dynamic_graph/tracer_real_time)
SET(TRACERREALTIME_PLUGIN ${DYNAMIC_GRAPH_PLUGIN_DIR}/tracer-real-time.so)
DYNAMIC_GRAPH_PYTHON_MODULE("tracer_real_time" ${TRACERREALTIME_PLUGIN} tracer_real_time/wrap)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment