Skip to content

Instantly share code, notes, and snippets.

@adgeese
Forked from jingzhehu/CMakeLists.txt
Created September 24, 2020 21:01
Show Gist options
  • Save adgeese/5a16c8352e501ed5f2f7bfaf533f462d to your computer and use it in GitHub Desktop.
Save adgeese/5a16c8352e501ed5f2f7bfaf533f462d 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment