2018-01-07 05:05:16 +00:00
|
|
|
# Copyright (c) 2014-2018, The Monero Project
|
2014-10-21 15:13:59 +00:00
|
|
|
#
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without modification, are
|
|
|
|
# permitted provided that the following conditions are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
|
|
|
# conditions and the following disclaimer.
|
|
|
|
#
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
|
|
|
# of conditions and the following disclaimer in the documentation and/or other
|
|
|
|
# materials provided with the distribution.
|
|
|
|
#
|
|
|
|
# 3. Neither the name of the copyright holder nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software without specific
|
|
|
|
# prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
|
|
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
|
|
# THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
|
|
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2017-02-21 15:11:12 +00:00
|
|
|
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
|
|
|
|
2014-10-21 15:13:59 +00:00
|
|
|
set(common_sources
|
|
|
|
base58.cpp
|
|
|
|
command_line.cpp
|
|
|
|
dns_utils.cpp
|
2017-02-20 20:48:36 +00:00
|
|
|
download.cpp
|
2018-09-11 01:25:15 +00:00
|
|
|
error.cpp
|
|
|
|
expect.cpp
|
2015-07-14 19:28:25 +00:00
|
|
|
util.cpp
|
2016-10-10 19:47:00 +00:00
|
|
|
i18n.cpp
|
2018-09-29 20:18:08 +00:00
|
|
|
notify.cpp
|
2017-02-05 22:48:03 +00:00
|
|
|
password.cpp
|
2016-11-02 20:41:43 +00:00
|
|
|
perf_timer.cpp
|
2018-10-01 06:39:37 +00:00
|
|
|
spawn.cpp
|
2017-09-14 03:39:37 +00:00
|
|
|
threadpool.cpp
|
2018-03-27 11:35:27 +00:00
|
|
|
updates.cpp
|
|
|
|
aligned.c)
|
2016-07-27 05:02:55 +00:00
|
|
|
|
|
|
|
if (STACK_TRACE)
|
|
|
|
list(APPEND common_sources stack_trace.cpp)
|
|
|
|
endif()
|
2014-10-21 15:13:59 +00:00
|
|
|
|
2014-10-21 16:38:00 +00:00
|
|
|
set(common_headers)
|
|
|
|
|
|
|
|
set(common_private_headers
|
2017-09-13 08:22:16 +00:00
|
|
|
apply_permutation.h
|
2014-10-21 15:13:59 +00:00
|
|
|
base58.h
|
|
|
|
boost_serialization_helper.h
|
|
|
|
command_line.h
|
2017-02-05 22:48:03 +00:00
|
|
|
common_fwd.h
|
2014-10-21 15:13:59 +00:00
|
|
|
dns_utils.h
|
2017-02-20 20:48:36 +00:00
|
|
|
download.h
|
2018-09-11 01:25:15 +00:00
|
|
|
error.h
|
|
|
|
expect.h
|
2015-01-29 22:10:53 +00:00
|
|
|
http_connection.h
|
2014-10-21 15:13:59 +00:00
|
|
|
int-util.h
|
2018-09-29 20:18:08 +00:00
|
|
|
notify.h
|
2014-10-21 15:13:59 +00:00
|
|
|
pod-class.h
|
2015-01-29 22:10:53 +00:00
|
|
|
rpc_client.h
|
|
|
|
scoped_message_writer.h
|
2014-10-21 15:13:59 +00:00
|
|
|
unordered_containers_boost_serialization.h
|
|
|
|
util.h
|
2015-07-14 19:28:25 +00:00
|
|
|
varint.h
|
2016-03-28 18:00:18 +00:00
|
|
|
i18n.h
|
2017-02-05 22:48:03 +00:00
|
|
|
password.h
|
2016-10-10 19:47:00 +00:00
|
|
|
perf_timer.h
|
2018-10-01 06:39:37 +00:00
|
|
|
spawn.h
|
2016-11-02 20:41:43 +00:00
|
|
|
stack_trace.h
|
2017-09-14 03:39:37 +00:00
|
|
|
threadpool.h
|
2018-03-27 11:35:27 +00:00
|
|
|
updates.h
|
|
|
|
aligned.h)
|
2014-10-21 15:13:59 +00:00
|
|
|
|
2016-09-26 14:42:29 +00:00
|
|
|
monero_private_headers(common
|
2014-10-21 16:38:00 +00:00
|
|
|
${common_private_headers})
|
2016-09-26 14:42:29 +00:00
|
|
|
monero_add_library(common
|
2014-10-21 15:13:59 +00:00
|
|
|
${common_sources}
|
2014-10-21 16:38:00 +00:00
|
|
|
${common_headers}
|
2018-01-04 03:24:06 +00:00
|
|
|
${common_private_headers}
|
|
|
|
DEPENDS generate_translations_header)
|
2014-10-21 15:13:59 +00:00
|
|
|
target_link_libraries(common
|
2016-09-17 17:59:29 +00:00
|
|
|
PUBLIC
|
2017-05-21 06:21:17 +00:00
|
|
|
cncrypto
|
2014-10-21 15:13:59 +00:00
|
|
|
${UNBOUND_LIBRARY}
|
2016-03-28 18:00:18 +00:00
|
|
|
${LIBUNWIND_LIBRARIES}
|
2014-10-21 15:13:59 +00:00
|
|
|
${Boost_DATE_TIME_LIBRARY}
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
2016-09-17 17:59:29 +00:00
|
|
|
${Boost_THREAD_LIBRARY}
|
2017-02-04 15:58:23 +00:00
|
|
|
${Boost_REGEX_LIBRARY}
|
2018-04-26 04:02:54 +00:00
|
|
|
${Boost_CHRONO_LIBRARY}
|
2016-09-17 17:59:29 +00:00
|
|
|
PRIVATE
|
2017-02-21 15:11:12 +00:00
|
|
|
${OPENSSL_LIBRARIES}
|
2014-10-21 15:13:59 +00:00
|
|
|
${EXTRA_LIBRARIES})
|
2014-10-21 16:38:00 +00:00
|
|
|
|
2016-09-26 14:42:29 +00:00
|
|
|
#monero_install_headers(common
|
2014-10-21 16:38:00 +00:00
|
|
|
# ${common_headers})
|