2015-12-31 01:39:56 -05:00
|
|
|
# Copyright (c) 2014-2016, The Monero Project
|
2014-10-21 11:13:59 -04: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.
|
|
|
|
|
|
|
|
set(common_sources
|
|
|
|
base58.cpp
|
|
|
|
command_line.cpp
|
|
|
|
dns_utils.cpp
|
2017-02-20 15:48:36 -05:00
|
|
|
download.cpp
|
2015-07-14 15:28:25 -04:00
|
|
|
util.cpp
|
2016-10-10 15:47:00 -04:00
|
|
|
i18n.cpp
|
2017-02-05 17:48:03 -05:00
|
|
|
password.cpp
|
2016-11-02 16:41:43 -04:00
|
|
|
perf_timer.cpp
|
2016-11-21 14:48:42 -05:00
|
|
|
task_region.cpp
|
2017-02-18 11:30:29 -05:00
|
|
|
thread_group.cpp
|
|
|
|
updates.cpp)
|
2016-07-27 01:02:55 -04:00
|
|
|
|
|
|
|
if (STACK_TRACE)
|
|
|
|
list(APPEND common_sources stack_trace.cpp)
|
|
|
|
endif()
|
2014-10-21 11:13:59 -04:00
|
|
|
|
2014-10-21 12:38:00 -04:00
|
|
|
set(common_headers)
|
|
|
|
|
|
|
|
set(common_private_headers
|
2014-10-21 11:13:59 -04:00
|
|
|
base58.h
|
|
|
|
boost_serialization_helper.h
|
|
|
|
command_line.h
|
2017-02-05 17:48:03 -05:00
|
|
|
common_fwd.h
|
2014-10-21 11:13:59 -04:00
|
|
|
dns_utils.h
|
2017-02-20 15:48:36 -05:00
|
|
|
download.h
|
2015-01-29 17:10:53 -05:00
|
|
|
http_connection.h
|
2014-10-21 11:13:59 -04:00
|
|
|
int-util.h
|
|
|
|
pod-class.h
|
2015-01-29 17:10:53 -05:00
|
|
|
rpc_client.h
|
|
|
|
scoped_message_writer.h
|
2014-10-21 11:13:59 -04:00
|
|
|
unordered_containers_boost_serialization.h
|
|
|
|
util.h
|
2015-07-14 15:28:25 -04:00
|
|
|
varint.h
|
2016-03-28 14:00:18 -04:00
|
|
|
i18n.h
|
2017-02-05 17:48:03 -05:00
|
|
|
password.h
|
2016-10-10 15:47:00 -04:00
|
|
|
perf_timer.h
|
2016-11-02 16:41:43 -04:00
|
|
|
stack_trace.h
|
2016-11-21 14:48:42 -05:00
|
|
|
task_region.h
|
2017-02-18 11:30:29 -05:00
|
|
|
thread_group.h
|
|
|
|
updates.h)
|
2014-10-21 11:13:59 -04:00
|
|
|
|
2016-09-26 10:42:29 -04:00
|
|
|
monero_private_headers(common
|
2014-10-21 12:38:00 -04:00
|
|
|
${common_private_headers})
|
2016-09-26 10:42:29 -04:00
|
|
|
monero_add_library(common
|
2014-10-21 11:13:59 -04:00
|
|
|
${common_sources}
|
2014-10-21 12:38:00 -04:00
|
|
|
${common_headers}
|
|
|
|
${common_private_headers})
|
2014-10-21 11:13:59 -04:00
|
|
|
target_link_libraries(common
|
2016-09-17 13:59:29 -04:00
|
|
|
PUBLIC
|
2017-01-26 10:07:23 -05:00
|
|
|
epee
|
2014-10-21 11:13:59 -04:00
|
|
|
crypto
|
2017-02-20 15:46:50 -05:00
|
|
|
-lcrypto
|
2014-10-21 11:13:59 -04:00
|
|
|
${UNBOUND_LIBRARY}
|
2016-03-28 14:00:18 -04:00
|
|
|
${LIBUNWIND_LIBRARIES}
|
2014-10-21 11:13:59 -04:00
|
|
|
${Boost_DATE_TIME_LIBRARY}
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
2016-09-17 13:59:29 -04:00
|
|
|
${Boost_THREAD_LIBRARY}
|
2017-02-04 10:58:23 -05:00
|
|
|
${Boost_REGEX_LIBRARY}
|
2016-09-17 13:59:29 -04:00
|
|
|
PRIVATE
|
2014-10-21 11:13:59 -04:00
|
|
|
${EXTRA_LIBRARIES})
|
2014-10-21 12:38:00 -04:00
|
|
|
|
2016-09-26 10:42:29 -04:00
|
|
|
#monero_install_headers(common
|
2014-10-21 12:38:00 -04:00
|
|
|
# ${common_headers})
|