aboutsummaryrefslogtreecommitdiffstats
path: root/icnet/CMakeLists.txt
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-02-22 14:37:37 +0100
committerMauro Sardara <msardara+fdio@cisco.com>2017-02-22 13:46:08 +0000
commitba8541cad3a4069886444abbd1848b6ef3fff72c (patch)
tree39226dd9b036ca7e513c2cccd8e71e15e09b86bc /icnet/CMakeLists.txt
parent9b30fc10fb1cbebe651e5a107e8ca5b24de54675 (diff)
Initial Commit: libicnet
Change-Id: I10a72cb0d84b76553a85c168416b847f6a4ff5f6 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet/CMakeLists.txt')
-rw-r--r--icnet/CMakeLists.txt60
1 files changed, 60 insertions, 0 deletions
diff --git a/icnet/CMakeLists.txt b/icnet/CMakeLists.txt
new file mode 100644
index 00000000..76e45f69
--- /dev/null
+++ b/icnet/CMakeLists.txt
@@ -0,0 +1,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/)