This is a precaution to avoid current and future naming conflicts with common system libraries. libutil (part of libc) is the first, but probably not the last example that already caused trouble twice. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1614 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
15 lines
383 B
CMake
15 lines
383 B
CMake
## Setup desired protobuf descriptions HERE ##
|
|
set(MY_PROTOS
|
|
OVPStatusMessage.proto
|
|
)
|
|
|
|
#### PROTOBUFS ####
|
|
find_package(Protobuf REQUIRED)
|
|
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${MY_PROTOS} )
|
|
|
|
## Build library
|
|
add_library(fail-ovpstatusmessages ${PROTO_SRCS} ${PROTO_HDRS} )
|