Skip to content

Instantly share code, notes, and snippets.

@jingzhehu
Created February 26, 2017 15:36
Show Gist options
  • Save jingzhehu/70326feccc09ecec2b24d2b51bb82bcd to your computer and use it in GitHub Desktop.
Save jingzhehu/70326feccc09ecec2b24d2b51bb82bcd to your computer and use it in GitHub Desktop.
Clion meets bitcoin.
cmake_minimum_required(VERSION 3.3)
project(bitcoin)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_custom_target(build-bitcoin ALL
COMMAND ./autogen.sh
COMMAND ./configure
COMMAND $(MAKE) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND $(MAKE) install)
add_custom_target(debug-bitcoind ALL)
add_custom_target(debug-bitcoin-qt ALL)
@marvinguo
Copy link

very goood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment