1 # Copyright (c) 2018 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
14 ##############################################################################
15 # Generate vlib/config.h
16 ##############################################################################
17 set(PRE_DATA_SIZE 128 CACHE STRING "Buffer headroom size.")
19 ${CMAKE_SOURCE_DIR}/vlib/config.h.in
20 ${CMAKE_BINARY_DIR}/vlib/config.h
23 FILES ${CMAKE_BINARY_DIR}/vlib/config.h
24 DESTINATION include/vlib
28 ##############################################################################
29 # Find lib and include files
30 ##############################################################################
31 message(STATUS "Looking for libuuid")
32 find_path(UUID_INCLUDE_DIR NAMES uuid/uuid.h)
33 find_library(UUID_LIB NAMES uuid)
35 if(UUID_INCLUDE_DIR AND UUID_LIB)
36 include_directories(${UUID_INCLUDE_DIR})
37 set(VMBUS_SOURCE linux/vmbus.c)
39 message(STATUS "Found uuid in ${UUID_INCLUDE_DIR}")
41 message(WARNING "-- libuuid not found - vmbus support disabled")
44 ##############################################################################
46 ##############################################################################
120 LINK_LIBRARIES vppinfra svm ${VMBUS_LIBS} ${CMAKE_DL_LIBS}