-
-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMakeLists.txt for easier IDE usage.
- Loading branch information
sproxet
committed
Jun 20, 2023
1 parent
d467ccb
commit 3f1a989
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |