aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/CMakeLists.txt
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-05-27 10:00:01 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-05-27 10:00:01 +0300
commitd43ad225959fec0acdb23ed311b7b98c35968209 (patch)
treed082c34b6433d2a74263bc689795c52a48b613a4 /src/wallet/CMakeLists.txt
parentWalletListener::moneyReceived test (diff)
downloadmonero-d43ad225959fec0acdb23ed311b7b98c35968209.tar.xz
all wallet dependencies merged to single static lib
Diffstat (limited to '')
-rw-r--r--src/wallet/CMakeLists.txt17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/wallet/CMakeLists.txt b/src/wallet/CMakeLists.txt
index 49f936f5c..df31acf48 100644
--- a/src/wallet/CMakeLists.txt
+++ b/src/wallet/CMakeLists.txt
@@ -26,6 +26,7 @@
# 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.
+include (${PROJECT_SOURCE_DIR}/cmake/libutils.cmake)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
@@ -39,11 +40,12 @@ set(wallet_sources
api/pending_transaction.cpp
api/utils.cpp)
-set(wallet_headers)
+set(wallet_headers
+ wallet2_api.h)
+
set(wallet_private_headers
wallet2.h
- wallet2_api.h
wallet_errors.h
wallet_rpc_server.h
wallet_rpc_server_commands_defs.h
@@ -72,3 +74,14 @@ target_link_libraries(wallet
${Boost_REGEX_LIBRARY}
${EXTRA_LIBRARIES})
+
+set(libs_to_merge wallet cryptonote_core mnemonics common crypto)
+MERGE_STATIC_LIBS(wallet_merged wallet_merged "${libs_to_merge}")
+
+install(TARGETS wallet_merged
+ ARCHIVE DESTINATION lib)
+
+install(FILES ${wallet_api_headers}
+ DESTINATION include/wallet)
+
+