Skip to content

Commit

Permalink
Add CMakeLists.txt for easier IDE usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Jun 20, 2023
1 parent d467ccb commit 3f1a989
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is used for IDE purposes only. We don't build with it.

set(CMAKE_CXX_STANDARD 14)

cmake_minimum_required(VERSION 3.0)

project(firod CXX)

add_definitions(-DENABLE_WALLET=1)
add_definitions(-DENABLE_ELYSIUM=1)
set(ENABLE_WALLET ON)
set(ENABLE_ELYSIUM ON)
set(INCLUDE_DIRS src src/univalue/include src/client-api src/zmq src/zmqserver src/wallet src/qt src/qt/forms src/hdmint src/elysium src/crypto src/leveldb/include src/secp256k1 src/secp256k1/include src/secp256k1/cpp src/bls)
include_directories(${INCLUDE_DIRS})

file(GLOB_RECURSE SRC_FILES *.h *.cpp *.ui)
add_executable(firod ${SRC_FILES})

unset(ENV{LC_ALL})
unset(ENV{LC_CTYPE})
unset(ENV{LANG})
execute_process(COMMAND make -C ${CMAKE_SOURCE_DIR}/depends print-HOST
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE __DEPENDS_TARGET)
string(REPLACE "=" ";" _DEPENDS_TARGET ${__DEPENDS_TARGET})
list(GET _DEPENDS_TARGET 1 DEPENDS_TARGET)
include_directories(depends/${DEPENDS_TARGET}/include)

0 comments on commit 3f1a989

Please sign in to comment.