2017-02-21 17:38:18 +00:00
|
|
|
# Copyright (c) 2014-2017, 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
|
2015-07-14 19:28:25 +00:00
|
|
|
util.cpp
|
2016-10-10 19:47:00 +00:00
|
|
|
i18n.cpp
|
2017-02-05 22:48:03 +00:00
|
|
|
password.cpp
|
2016-11-02 20:41:43 +00:00
|
|
|
perf_timer.cpp
|
2017-09-14 03:39:37 +00:00
|
|
|
threadpool.cpp
|
2017-02-18 16:30:29 +00:00
|
|
|
updates.cpp)
|
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
|
2015-01-29 22:10:53 +00:00
|
|
|
http_connection.h
|
2014-10-21 15:13:59 +00:00
|
|
|
int-util.h
|
|
|
|
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
|
2016-11-02 20:41:43 +00:00
|
|
|
stack_trace.h
|
2017-09-14 03:39:37 +00:00
|
|
|
threadpool.h
|
2017-02-18 16:30:29 +00:00
|
|
|
updates.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-01-26 15:07:23 +00:00
|
|
|
epee
|
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}
|
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})
|