mirror of
https://github.com/opencardev/aasdk.git
synced 2024-07-06 03:43:53 +02:00
10 lines
350 B
CMake
10 lines
350 B
CMake
include(FindProtobuf)
|
|
find_package(Protobuf REQUIRED)
|
|
include_directories(${PROTOBUF_INCLUDE_DIR})
|
|
|
|
file(GLOB_RECURSE proto_files ${CMAKE_CURRENT_SOURCE_DIR}/*.proto)
|
|
protobuf_generate_cpp(proto_sources proto_headers ${proto_files})
|
|
add_library(aasdk_proto ${proto_headers} ${proto_sources})
|
|
target_link_libraries(aasdk_proto ${PROTOBUF_LIBRARIES})
|
|
|