From 40fa1bb492c8832bddcc8dd49153ea39bc6d4e7a Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Mon, 19 Nov 2018 07:30:58 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55f43ca69a..9e22a2e9b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )