1cmake_minimum_required(VERSION 3.4.1)
2
3include("../protobuf/protobuf.cmake")
4
5protobuf_generate_lite_cpp( ${CMAKE_CURRENT_SOURCE_DIR}/../../include/device_info
6  ${CMAKE_CURRENT_SOURCE_DIR}/../../include/device_info/device_info.proto)
7
8set ( SOURCE_LOCATION .)
9
10include_directories( ../../include )
11include_directories( ../common )
12
13include_directories( ${PROTO_GENS_DIR} )
14include_directories( ${PROTOBUF_INCLUDE_DIR} )
15
16message( STATUS "Building device_info_static to ${CMAKE_CURRENT_BINARY_DIR}/build" )
17add_library( device_info_static
18
19             STATIC
20
21             ${SOURCE_LOCATION}/device_info.cpp
22             ${PROTO_GENS_DIR}/lite/device_info.pb.cc
23
24             # Add new source files here
25             )
26
27set_target_properties( device_info_static PROPERTIES
28     LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build )
29
30