mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Add platform dependent include_directories in CMakeLists.txt (#2455)
This gives much better auto-completion and code analysis in CLion. Also add src/qt/forms to include path.
This commit is contained in:
parent
12aba2592d
commit
40fa1bb492
@ -12,10 +12,26 @@ set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
include_directories(
|
||||
src
|
||||
src/qt/forms
|
||||
src/leveldb/include
|
||||
src/univalue/include
|
||||
)
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
set(DEPENDS_PREFIX depends/x86_64-pc-linux-gnu)
|
||||
elseif(APPLE)
|
||||
set(DEPENDS_PREFIX depends/x86_64-apple-darwin11)
|
||||
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()
|
||||
|
||||
add_definitions(
|
||||
-DENABLE_WALLET=1
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user