From ea2107d33af86819e961a17c30a6e3a10908b84a Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Thu, 17 Mar 2016 17:27:21 -0500 Subject: [PATCH 1/3] Prevent websocketpp from polluting installs When clients of fc (such as graphene) do an install (via `make install` or similar), websocketpp was installing as well. This commit prevents this from happening. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eeadd2b0b..53ac49f5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -249,7 +249,7 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/git_revision.cpp.in" "${CMAKE_CU list(APPEND sources "${CMAKE_CURRENT_BINARY_DIR}/git_revision.cpp") list(APPEND sources ${fc_headers}) -add_subdirectory( vendor/websocketpp ) +add_subdirectory( vendor/websocketpp EXCLUDE_FROM_ALL ) add_subdirectory( vendor/udt4 ) setup_library( fc SOURCES ${sources} LIBRARY_TYPE STATIC DONT_INSTALL_LIBRARY ) From 397c10ce1982f1c007a1efc38454ff63f85c1eed Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Thu, 17 Mar 2016 17:41:22 -0500 Subject: [PATCH 2/3] Fix installation FC now installs properly with a `make install` --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53ac49f5e..f1bcdcea8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,7 +252,8 @@ list(APPEND sources ${fc_headers}) add_subdirectory( vendor/websocketpp EXCLUDE_FROM_ALL ) add_subdirectory( vendor/udt4 ) -setup_library( fc SOURCES ${sources} LIBRARY_TYPE STATIC DONT_INSTALL_LIBRARY ) +setup_library( fc SOURCES ${sources} LIBRARY_TYPE STATIC ) +install( DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION include ) # begin readline stuff find_package(Curses) From 3aec9d2c1fc08247e5ee39196137464aef9bcbb9 Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Tue, 22 Mar 2016 17:19:47 -0500 Subject: [PATCH 3/3] Add cryptonomex's custom secp256k1 to install on non-Windows This should be done on Windows too, but I don't know how and I don't have a Windows test box anyways. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1bcdcea8..492d5fffb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,7 @@ else ( WIN32 ) set_property(TARGET secp256k1 PROPERTY IMPORTED_LOCATION ${binary_dir}/.libs/libsecp256k1${CMAKE_STATIC_LIBRARY_SUFFIX}) set_property(TARGET secp256k1 PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/vendor/secp256k1-zkp/include) add_dependencies(secp256k1 project_secp256k1) + install( FILES ${binary_dir}/.libs/libsecp256k1${CMAKE_STATIC_LIBRARY_SUFFIX} DESTINATION lib/cryptonomex ) endif ( WIN32 ) # End configure secp256k1-zkp