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:
Alexander Block 2018-11-19 07:30:58 +01:00 committed by GitHub
parent 12aba2592d
commit 40fa1bb492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
)