Files

47 lines
1.6 KiB
CMake
Raw Permalink Normal View History

# This file is part of the Flowee project
2021-06-20 22:44:44 +02:00
# Copyright (C) 2018-2019 Tom Zander <tom@flowee.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2019-06-02 20:20:04 +02:00
include_directories(${LIBNETWORKMANAGER_INCLUDES} ${CMAKE_BINARY_DIR}/include)
2018-02-10 14:59:45 +01:00
add_library(flowee_networkmanager STATIC
ConnectionAuthorizer.cpp
2018-02-10 14:59:45 +01:00
NetworkConnection.cpp
2020-03-30 22:17:44 +02:00
NetworkEndPoint.cpp
2018-02-10 14:59:45 +01:00
NetworkManager.cpp
2019-04-09 17:24:38 +02:00
NetworkServiceBase.cpp
2018-02-15 14:47:17 +01:00
NetworkService.cpp
2019-03-31 15:13:59 +02:00
NetworkException.cpp
NetworkQueueFullError.cpp
2018-02-10 14:59:45 +01:00
)
2024-07-20 12:55:49 +02:00
target_link_libraries(flowee_networkmanager flowee_utils ${OPENSSL_LIBRARIES})
add_definitions(-DLOG_DEFAULT_SECTION=2004)
2018-02-10 14:59:45 +01:00
2019-11-04 14:20:50 +01:00
# allow usage in dlls
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
2019-05-30 13:36:57 +02:00
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libflowee_networkmanager.a DESTINATION lib)
2019-06-02 20:20:04 +02:00
install(FILES
ConnectionAuthorizer.h
2019-06-02 20:20:04 +02:00
NetworkConnection.h
NetworkEndPoint.h
2019-08-24 13:20:37 +02:00
NetworkException.h
2019-06-02 20:20:04 +02:00
NetworkManager.h
2019-08-24 13:20:37 +02:00
NetworkQueueFullError.h
NetworkServiceBase.h
NetworkService.h
2019-06-06 22:39:24 +02:00
DESTINATION include/flowee/networkmanager)