From c7444f8d4d931ec9ce8c38df9f26a19099fefdd5 Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Mon, 3 Aug 2015 11:11:27 -0400 Subject: [PATCH] Implement minimal "make install" command #219 --- libraries/app/CMakeLists.txt | 8 ++++++++ libraries/chain/CMakeLists.txt | 8 ++++++++ libraries/db/CMakeLists.txt | 8 ++++++++ libraries/deterministic_openssl_rand/CMakeLists.txt | 8 ++++++++ libraries/net/CMakeLists.txt | 8 ++++++++ libraries/plugins/account_history/CMakeLists.txt | 8 ++++++++ libraries/plugins/market_history/CMakeLists.txt | 8 ++++++++ libraries/plugins/witness/CMakeLists.txt | 8 ++++++++ libraries/time/CMakeLists.txt | 8 ++++++++ libraries/utilities/CMakeLists.txt | 8 ++++++++ libraries/wallet/CMakeLists.txt | 8 ++++++++ programs/cli_full_wallet/CMakeLists.txt | 8 ++++++++ programs/cli_wallet/CMakeLists.txt | 8 ++++++++ programs/js_operation_serializer/CMakeLists.txt | 8 ++++++++ programs/light_client/CMakeLists.txt | 8 ++++++++ programs/size_checker/CMakeLists.txt | 8 ++++++++ programs/witness_node/CMakeLists.txt | 8 ++++++++ 17 files changed, 136 insertions(+) diff --git a/libraries/app/CMakeLists.txt b/libraries/app/CMakeLists.txt index e18e6e11..3af4054c 100644 --- a/libraries/app/CMakeLists.txt +++ b/libraries/app/CMakeLists.txt @@ -14,3 +14,11 @@ target_include_directories( graphene_app if(MSVC) set_source_files_properties( application.cpp api.cpp PROPERTIES COMPILE_FLAGS "/bigobj" ) endif(MSVC) + +INSTALL( TARGETS + graphene_app + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/chain/CMakeLists.txt b/libraries/chain/CMakeLists.txt index fe4272b3..33fca309 100644 --- a/libraries/chain/CMakeLists.txt +++ b/libraries/chain/CMakeLists.txt @@ -75,3 +75,11 @@ target_include_directories( graphene_chain if(MSVC) set_source_files_properties( db_init.cpp db_block.cpp database.cpp PROPERTIES COMPILE_FLAGS "/bigobj" ) endif(MSVC) + +INSTALL( TARGETS + graphene_chain + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/db/CMakeLists.txt b/libraries/db/CMakeLists.txt index 8538cf01..82ab91b8 100644 --- a/libraries/db/CMakeLists.txt +++ b/libraries/db/CMakeLists.txt @@ -2,3 +2,11 @@ file(GLOB HEADERS "include/graphene/db/*.hpp") add_library( graphene_db undo_database.cpp index.cpp object_database.cpp type_serializer.cpp ${HEADERS} ) target_link_libraries( graphene_db fc ) target_include_directories( graphene_db PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" ) + +install( TARGETS + graphene_db + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/deterministic_openssl_rand/CMakeLists.txt b/libraries/deterministic_openssl_rand/CMakeLists.txt index 42feaaba..13ef69a0 100644 --- a/libraries/deterministic_openssl_rand/CMakeLists.txt +++ b/libraries/deterministic_openssl_rand/CMakeLists.txt @@ -17,3 +17,11 @@ if (USE_PCH) set_target_properties(deterministic_openssl_rand PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE) cotire(deterministic_openssl_rand) endif(USE_PCH) + +install( TARGETS + deterministic_openssl_rand + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/net/CMakeLists.txt b/libraries/net/CMakeLists.txt index 7cce05cf..cabf26a6 100644 --- a/libraries/net/CMakeLists.txt +++ b/libraries/net/CMakeLists.txt @@ -24,3 +24,11 @@ if (USE_PCH) set_target_properties(graphene_net PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE) cotire(graphene_net) endif(USE_PCH) + +install( TARGETS + graphene_net + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/plugins/account_history/CMakeLists.txt b/libraries/plugins/account_history/CMakeLists.txt index 7325d658..18fd6135 100644 --- a/libraries/plugins/account_history/CMakeLists.txt +++ b/libraries/plugins/account_history/CMakeLists.txt @@ -11,3 +11,11 @@ target_include_directories( graphene_account_history if(MSVC) set_source_files_properties( account_history_plugin.cpp PROPERTIES COMPILE_FLAGS "/bigobj" ) endif(MSVC) + +install( TARGETS + graphene_account_history + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/plugins/market_history/CMakeLists.txt b/libraries/plugins/market_history/CMakeLists.txt index 6394ba66..21b8211f 100644 --- a/libraries/plugins/market_history/CMakeLists.txt +++ b/libraries/plugins/market_history/CMakeLists.txt @@ -11,3 +11,11 @@ target_include_directories( graphene_market_history if(MSVC) set_source_files_properties( market_history_plugin.cpp PROPERTIES COMPILE_FLAGS "/bigobj" ) endif(MSVC) + +install( TARGETS + graphene_market_history + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/plugins/witness/CMakeLists.txt b/libraries/plugins/witness/CMakeLists.txt index 70028024..c82442ff 100644 --- a/libraries/plugins/witness/CMakeLists.txt +++ b/libraries/plugins/witness/CMakeLists.txt @@ -7,3 +7,11 @@ add_library( graphene_witness target_link_libraries( graphene_witness graphene_chain graphene_app graphene_time ) target_include_directories( graphene_witness PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" ) + +install( TARGETS + graphene_witness + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/time/CMakeLists.txt b/libraries/time/CMakeLists.txt index 164e7fa1..cc8a909d 100644 --- a/libraries/time/CMakeLists.txt +++ b/libraries/time/CMakeLists.txt @@ -7,3 +7,11 @@ add_library( graphene_time target_link_libraries( graphene_time fc ) target_include_directories( graphene_time PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" ) + +install( TARGETS + graphene_time + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/utilities/CMakeLists.txt b/libraries/utilities/CMakeLists.txt index 124ed673..cce16644 100644 --- a/libraries/utilities/CMakeLists.txt +++ b/libraries/utilities/CMakeLists.txt @@ -29,3 +29,11 @@ if (USE_PCH) set_target_properties(graphene_utilities PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE) cotire(graphene_utilities) endif(USE_PCH) + +install( TARGETS + graphene_utilities + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/libraries/wallet/CMakeLists.txt b/libraries/wallet/CMakeLists.txt index 4d3a36f2..506473b2 100644 --- a/libraries/wallet/CMakeLists.txt +++ b/libraries/wallet/CMakeLists.txt @@ -29,3 +29,11 @@ target_include_directories( graphene_db PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/incl if(MSVC) set_source_files_properties( wallet.cpp PROPERTIES COMPILE_FLAGS "/bigobj" ) endif(MSVC) + +install( TARGETS + graphene_wallet + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/programs/cli_full_wallet/CMakeLists.txt b/programs/cli_full_wallet/CMakeLists.txt index b031363f..098aa92d 100644 --- a/programs/cli_full_wallet/CMakeLists.txt +++ b/programs/cli_full_wallet/CMakeLists.txt @@ -15,3 +15,11 @@ target_link_libraries( cli_full_wallet if(MSVC) set_source_files_properties( main.cpp PROPERTIES COMPILE_FLAGS "/bigobj" ) endif(MSVC) + +install( TARGETS + cli_full_wallet + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/programs/cli_wallet/CMakeLists.txt b/programs/cli_wallet/CMakeLists.txt index 8eed412e..0c5d580b 100644 --- a/programs/cli_wallet/CMakeLists.txt +++ b/programs/cli_wallet/CMakeLists.txt @@ -15,3 +15,11 @@ target_link_libraries( cli_wallet if(MSVC) set_source_files_properties( main.cpp PROPERTIES COMPILE_FLAGS "/bigobj" ) endif(MSVC) + +install( TARGETS + cli_wallet + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/programs/js_operation_serializer/CMakeLists.txt b/programs/js_operation_serializer/CMakeLists.txt index 4815cb1d..40084608 100644 --- a/programs/js_operation_serializer/CMakeLists.txt +++ b/programs/js_operation_serializer/CMakeLists.txt @@ -5,3 +5,11 @@ endif() target_link_libraries( js_operation_serializer PRIVATE graphene_app graphene_net graphene_chain graphene_utilities graphene_wallet fc ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} ) + +install( TARGETS + js_operation_serializer + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/programs/light_client/CMakeLists.txt b/programs/light_client/CMakeLists.txt index 0bedf46d..c9bca410 100644 --- a/programs/light_client/CMakeLists.txt +++ b/programs/light_client/CMakeLists.txt @@ -35,3 +35,11 @@ if (CMAKE_VERSION VERSION_LESS 3.0) endif() target_link_libraries(light_client PRIVATE Qt5::Core Qt5::Widgets Qt5::Quick graphene_chain graphene_utilities fc graphene_app ) + +install( TARGETS + light_client + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/programs/size_checker/CMakeLists.txt b/programs/size_checker/CMakeLists.txt index 8d9e752d..0025afc3 100644 --- a/programs/size_checker/CMakeLists.txt +++ b/programs/size_checker/CMakeLists.txt @@ -5,3 +5,11 @@ endif() target_link_libraries( size_checker PRIVATE graphene_chain fc ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} ) + +install( TARGETS + size_checker + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/programs/witness_node/CMakeLists.txt b/programs/witness_node/CMakeLists.txt index bf5f67d2..c0f6a7c1 100644 --- a/programs/witness_node/CMakeLists.txt +++ b/programs/witness_node/CMakeLists.txt @@ -11,3 +11,11 @@ endif() target_link_libraries( witness_node PRIVATE graphene_app graphene_account_history graphene_market_history graphene_witness graphene_chain fc ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} ) + +install( TARGETS + witness_node + + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +)