2014-09-11 09:25:07 +03:00
|
|
|
# Copyright (c) 2014, The Monero Project
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
|
|
|
|
|
2014-04-09 15:14:35 +03:00
|
|
|
add_definitions(-DSTATICLIB)
|
2014-10-07 01:44:44 +03:00
|
|
|
# miniupnp changed their static define
|
|
|
|
add_definitions(-DMINIUPNP_STATICLIB)
|
2014-04-09 15:14:35 +03:00
|
|
|
|
2014-03-04 00:07:58 +02:00
|
|
|
file(GLOB_RECURSE COMMON common/*)
|
|
|
|
file(GLOB_RECURSE CRYPTO crypto/*)
|
|
|
|
file(GLOB_RECURSE CRYPTONOTE_CORE cryptonote_core/*)
|
|
|
|
file(GLOB_RECURSE CRYPTONOTE_PROTOCOL cryptonote_protocol/*)
|
|
|
|
file(GLOB_RECURSE DAEMON daemon/*)
|
|
|
|
file(GLOB_RECURSE P2P p2p/*)
|
|
|
|
file(GLOB_RECURSE RPC rpc/*)
|
|
|
|
file(GLOB_RECURSE SIMPLEWALLET simplewallet/*)
|
|
|
|
file(GLOB_RECURSE CONN_TOOL connectivity_tool/*)
|
|
|
|
file(GLOB_RECURSE WALLET wallet/*)
|
|
|
|
file(GLOB_RECURSE MINER miner/*)
|
2014-09-24 20:14:36 +03:00
|
|
|
file(GLOB MNEMONICS mnemonics/*)
|
2014-03-04 00:07:58 +02:00
|
|
|
|
|
|
|
source_group(common FILES ${COMMON})
|
|
|
|
source_group(crypto FILES ${CRYPTO})
|
|
|
|
source_group(cryptonote_core FILES ${CRYPTONOTE_CORE})
|
|
|
|
source_group(cryptonote_protocol FILES ${CRYPTONOTE_PROTOCOL})
|
|
|
|
source_group(daemon FILES ${DAEMON})
|
|
|
|
source_group(p2p FILES ${P2P})
|
|
|
|
source_group(rpc FILES ${RPC})
|
|
|
|
source_group(simplewallet FILES ${SIMPLEWALLET})
|
|
|
|
source_group(connectivity-tool FILES ${CONN_TOOL})
|
|
|
|
source_group(wallet FILES ${WALLET})
|
|
|
|
source_group(simpleminer FILES ${MINER})
|
2014-09-23 14:34:04 +03:00
|
|
|
source_group(mnemonics FILES ${MNEMONICS})
|
2014-03-04 00:07:58 +02:00
|
|
|
|
|
|
|
add_library(common ${COMMON})
|
|
|
|
add_library(crypto ${CRYPTO})
|
|
|
|
add_library(cryptonote_core ${CRYPTONOTE_CORE})
|
2014-09-23 14:34:04 +03:00
|
|
|
add_library(mnemonics ${MNEMONICS})
|
2014-03-04 00:07:58 +02:00
|
|
|
add_executable(daemon ${DAEMON} ${P2P} ${CRYPTONOTE_PROTOCOL})
|
|
|
|
add_executable(connectivity_tool ${CONN_TOOL})
|
|
|
|
add_executable(simpleminer ${MINER})
|
2014-10-06 23:29:07 +03:00
|
|
|
target_link_libraries(daemon rpc cryptonote_core crypto common ${UNBOUND_LIBRARY} ${UPNP_LIBRARIES} ${Boost_LIBRARIES} ${EXTRA_LIBRARIES})
|
|
|
|
target_link_libraries(connectivity_tool cryptonote_core crypto common ${UNBOUND_LIBRARY} ${Boost_LIBRARIES} ${EXTRA_LIBRARIES})
|
|
|
|
target_link_libraries(simpleminer cryptonote_core crypto common ${UNBOUND_LIBRARY} ${Boost_LIBRARIES} ${EXTRA_LIBRARIES})
|
2014-03-04 00:07:58 +02:00
|
|
|
add_library(rpc ${RPC})
|
|
|
|
add_library(wallet ${WALLET})
|
2014-09-23 14:34:04 +03:00
|
|
|
target_link_libraries(wallet mnemonics)
|
2014-03-04 00:07:58 +02:00
|
|
|
add_executable(simplewallet ${SIMPLEWALLET} )
|
2014-10-06 23:29:07 +03:00
|
|
|
target_link_libraries(simplewallet wallet rpc cryptonote_core crypto common mnemonics ${UNBOUND_LIBRARY} ${UPNP_LIBRARIES} ${Boost_LIBRARIES} ${EXTRA_LIBRARIES})
|
2014-03-04 00:07:58 +02:00
|
|
|
add_dependencies(daemon version)
|
2014-04-09 15:14:35 +03:00
|
|
|
add_dependencies(rpc version)
|
|
|
|
add_dependencies(simplewallet version)
|
2014-03-04 00:07:58 +02:00
|
|
|
|
|
|
|
set_property(TARGET common crypto cryptonote_core rpc wallet PROPERTY FOLDER "libs")
|
|
|
|
set_property(TARGET daemon simplewallet connectivity_tool simpleminer PROPERTY FOLDER "prog")
|
2014-08-07 02:41:38 +03:00
|
|
|
if (STATIC)
|
|
|
|
set_property(TARGET daemon simplewallet connectivity_tool simpleminer PROPERTY LINK_SEARCH_START_STATIC 1)
|
|
|
|
set_property(TARGET daemon simplewallet connectivity_tool simpleminer PROPERTY LINK_SEARCH_END_STATIC 1)
|
|
|
|
endif()
|
2014-04-18 00:21:40 +03:00
|
|
|
set_property(TARGET daemon PROPERTY OUTPUT_NAME "bitmonerod")
|