diff options
author | Junfeng Wang <drenfong.wang@intel.com> | 2019-09-09 09:29:21 -0400 |
---|---|---|
committer | Junfeng Wang <drenfong.wang@intel.com> | 2019-09-09 09:29:21 -0400 |
commit | 94012c07d414604c05ece9afadda1bb9d92f9482 (patch) | |
tree | a8034393498d59cedbed2602b62e986e40041788 | |
parent | 29a4db4f00c86af1da59a66920741459125bc875 (diff) |
add included path
Change-Id: I292eb718cafbaebe8e0f516f52cd685a885db501
Signed-off-by: Junfeng Wang <drenfong.wang@intel.com>
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c7cbc43..7a90506 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ set(UDPI_PLUGIN_FILES src/dpi_api.c src/dpi_cli.c src/dpi_node.c - src/protocols/dpi_ssl.c + src/protocols/dpi_ssl.c ) set(UDPI_PLUGIN_HEADER_FILES @@ -103,7 +103,7 @@ execute_process( COMMAND curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_c_gen.py?h=stable/1908 -o ${CMAKE_BINARY_DIR}/vapi_c_gen.py COMMAND curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_cpp_gen.py?h=stable/1908 -o ${CMAKE_BINARY_DIR}/vapi_cpp_gen.py ) - + add_custom_command( COMMAND chmod +x ${CMAKE_BINARY_DIR}/vapi_json_parser.py ${CMAKE_BINARY_DIR}/vapi_c_gen.py ${CMAKE_BINARY_DIR}/vapi_cpp_gen.py OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vpp_plugins/udpi/dpi.api.h @@ -119,6 +119,7 @@ add_custom_command( include_directories(SYSTEM) include_directories(${CMAKE_CURRENT_BINARY_DIR}) +include_directories(${CMAKE_CURRENT_BINARY_DIR}/vpp_plugins/udpi) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUDPI_VPP_PLUGIN=1") add_library(udpi_plugin SHARED @@ -127,7 +128,6 @@ add_library(udpi_plugin SHARED ${UDPI_VAPI_GENERATED_FILES}) target_link_libraries(udpi_plugin ${HYPERSCAN_LIB}) -file(COPY ${UDPI_API_GENERATED_FILES} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/src ) file(COPY ${UDPI_PLUGIN_HEADER_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/vpp_plugins/udpi) include_directories(${CMAKE_CURRENT_BINARY_DIR}/vpp_plugins) |