blob: 76e45f69167dc02cabf13e9079eb9a64655d66a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright (c) 2017 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.2)
file(GLOB HEADER_FILES "ccnx/*.h")
file(GLOB SOURCE_FILES "ccnx/*.cc")
set(CP_API_HEADER_FILES
${CMAKE_BINARY_DIR}/config.hpp
transport/icnet_rate_estimation.h
transport/icnet_download_observer.h
transport/icnet_socket_consumer.h
transport/icnet_socket.h
transport/icnet_socket_options_default_values.h
transport/icnet_socket_options_keys.h
transport/icnet_common.h
transport/icnet_socket_producer.h
transport/icnet_content_store.h
transport/icnet_transport_vegas.h
transport/icnet_transport.h
transport/icnet_transport_raaqm.h
transport/icnet_transport_vegas_rto_estimator.h
transport/icnet_transport_raaqm_data_path.h)
set(CP_API_SOURCE_FILES
transport/icnet_socket_producer.cc
transport/icnet_socket_consumer.cc
transport/icnet_transport_vegas.cc
transport/icnet_transport.cc
transport/icnet_content_store.cc
transport/icnet_transport_raaqm.cc
transport/icnet_transport_vegas_rto_estimator.cc
transport/icnet_rate_estimation.cc
transport/icnet_transport_raaqm_data_path.cc)
set(CP_API_CONFIG
transport/consumer.conf)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
add_library(icnet SHARED ${SOURCE_FILES} ${CP_API_SOURCE_FILES})
target_link_libraries(icnet ${LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
install(TARGETS icnet DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
install(FILES ${COMMON_HEADER_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/icnet)
install(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/icnet)
install(FILES ${CP_API_HEADER_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/icnet)
install(FILES ${CP_API_CONFIG} DESTINATION ${CMAKE_INSTALL_PREFIX}/etc/)
|