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(
|
include_directories(
|
||||||
src
|
src
|
||||||
|
src/qt/forms
|
||||||
src/leveldb/include
|
src/leveldb/include
|
||||||
src/univalue/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(
|
add_definitions(
|
||||||
-DENABLE_WALLET=1
|
-DENABLE_WALLET=1
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user