2018-03-09 13:41:28 +01:00
|
|
|
# This CMakeLists.txt is not meant to actually work!
|
|
|
|
# It only serves as a dummy project to make CLion work properly when it comes to symbol resolution and all the nice
|
|
|
|
# features dependent on that. Building must still be done on the command line using the automake build chain
|
|
|
|
# If you load this project in CLion and would like to run/debug executables, make sure to remove the "Build" entry from
|
|
|
|
# the run/debug configuration as otherwise CLion will try to build this project with cmake, failing horribly.
|
|
|
|
# You'll also have to manually change the executable in the configuration to the correct path of the already built executable
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
project(dash)
|
|
|
|
|
2021-09-29 18:21:26 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2018-03-09 13:41:28 +01:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
src
|
2018-11-19 07:30:58 +01:00
|
|
|
src/qt/forms
|
2018-03-09 13:41:28 +01:00
|
|
|
src/leveldb/include
|
|
|
|
src/univalue/include
|
|
|
|
)
|
|
|
|
|
2018-11-19 07:30:58 +01:00
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
set(DEPENDS_PREFIX depends/x86_64-pc-linux-gnu)
|
|
|
|
elseif(APPLE)
|
2022-01-20 17:23:12 +01:00
|
|
|
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
|
2022-05-09 13:13:49 +02:00
|
|
|
EXECUTE_PROCESS( COMMAND system_profiler -detailLevel mini -json SPSoftwareDataType
|
|
|
|
COMMAND jq .SPSoftwareDataType
|
|
|
|
COMMAND jq .[]
|
|
|
|
COMMAND jq .kernel_version
|
|
|
|
COMMAND tr -d "Dawrin\" "
|
|
|
|
OUTPUT_VARIABLE DARWIN_KERNEL_VERSION)
|
2022-01-20 17:23:12 +01:00
|
|
|
if( ${ARCHITECTURE} STREQUAL "arm64" )
|
2022-05-09 13:13:49 +02:00
|
|
|
set(DEPENDS_PREFIX depends/aarch64-apple-darwin${DARWIN_KERNEL_VERSION})
|
2022-01-20 17:23:12 +01:00
|
|
|
else()
|
2022-05-09 13:13:49 +02:00
|
|
|
set(DEPENDS_PREFIX depends/x86_64-apple-darwin${DARWIN_KERNEL_VERSION})
|
2022-01-20 17:23:12 +01:00
|
|
|
endif()
|
2018-11-19 07:30:58 +01:00
|
|
|
elseif(WIN32)
|
|
|
|
set(DEPENDS_PREFIX depends/x86_64-w64-mingw32)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
message(STATUS "DEPENDS_PREFIX: ${DEPENDS_PREFIX}")
|
|
|
|
|
|
|
|
if(DEFINED DEPENDS_PREFIX)
|
|
|
|
include_directories(${DEPENDS_PREFIX}/include)
|
|
|
|
include_directories(${DEPENDS_PREFIX}/include/QtWidgets)
|
|
|
|
endif()
|
|
|
|
|
2018-03-09 13:41:28 +01:00
|
|
|
add_definitions(
|
2019-07-02 06:16:11 +02:00
|
|
|
-DENABLE_CRASH_HOOKS=1
|
2020-12-01 05:18:46 +01:00
|
|
|
-DENABLE_STACKTRACES=1
|
2018-03-09 13:41:28 +01:00
|
|
|
-DENABLE_WALLET=1
|
|
|
|
)
|
|
|
|
|
|
|
|
file(GLOB SOURCE_FILES
|
2019-05-27 16:13:59 +02:00
|
|
|
src/*.cpp
|
|
|
|
src/*.h
|
2018-03-09 13:41:28 +01:00
|
|
|
src/bench/*.cpp
|
|
|
|
src/bench/*.h
|
2019-01-17 15:57:13 +01:00
|
|
|
src/bls/*.cpp
|
|
|
|
src/bls/*.h
|
2021-03-17 23:36:11 +01:00
|
|
|
src/coinjoin/*.cpp
|
|
|
|
src/coinjoin/*.h
|
2018-03-09 13:41:28 +01:00
|
|
|
src/compat/*.cpp
|
|
|
|
src/compat/*.h
|
|
|
|
src/consensus/*.cpp
|
2019-05-27 16:13:59 +02:00
|
|
|
src/consensus/*.h
|
2018-03-09 13:41:28 +01:00
|
|
|
src/crypto/*.c
|
|
|
|
src/crypto/*.cpp
|
2019-05-27 16:13:59 +02:00
|
|
|
src/crypto/*.h
|
|
|
|
src/evo/*.cpp
|
|
|
|
src/evo/*.h
|
2022-12-13 18:54:59 +01:00
|
|
|
src/governance/*.cpp
|
|
|
|
src/governance/*.h
|
2018-03-09 13:41:28 +01:00
|
|
|
src/leveldb/db/*.cc
|
|
|
|
src/leveldb/db/*.h
|
|
|
|
src/leveldb/include/*.h
|
2019-05-27 16:13:59 +02:00
|
|
|
src/llmq/*.cpp
|
|
|
|
src/llmq/*.h
|
|
|
|
src/masternode/*.cpp
|
|
|
|
src/masternode/*.h
|
2018-03-09 13:41:28 +01:00
|
|
|
src/policy/*.cpp
|
|
|
|
src/policy/*.h
|
|
|
|
src/primitives/*.cpp
|
|
|
|
src/primitives/*.h
|
|
|
|
src/qt/*.cpp
|
|
|
|
src/qt/*.h
|
2019-05-27 16:13:59 +02:00
|
|
|
src/qt/test/*.cpp
|
|
|
|
src/qt/test/*.h
|
|
|
|
src/rpc/*.cpp
|
|
|
|
src/rpc/*.h
|
2018-03-09 13:41:28 +01:00
|
|
|
src/script/*.cpp
|
|
|
|
src/script/*.h
|
|
|
|
src/secp256k1/include/*.h
|
|
|
|
src/test/*.cpp
|
|
|
|
src/test/*.h
|
|
|
|
src/univalue/include/*.h
|
|
|
|
src/univalue/lib/*.cpp
|
|
|
|
src/univalue/lib/*.h
|
|
|
|
src/wallet/*.cpp
|
|
|
|
src/wallet/*.h
|
2019-05-27 16:13:59 +02:00
|
|
|
src/wallet/test/*.cpp
|
2018-03-09 13:41:28 +01:00
|
|
|
src/zmq/*.cpp
|
|
|
|
src/zmq/*.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(dash ${SOURCE_FILES})
|