diff --git a/CMakeLists.txt b/CMakeLists.txt index a9d908e92..bbcc308a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,8 @@ cmake_minimum_required(VERSION 2.8.7) project(graftnetwork) +set(DISABLE_SUPERNODE ${APPLE}) + function (die msg) if (NOT WIN32) string(ASCII 27 Esc) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7608092c9..8c3d0b0aa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -109,7 +109,9 @@ if(NOT IOS) add_subdirectory(rpc) endif() add_subdirectory(wallet) +if (NOT DISABLE_SUPERNODE) add_subdirectory(supernode) +endif() if(NOT IOS) add_subdirectory(p2p) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 224903bf1..27d64f308 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -87,12 +87,16 @@ add_subdirectory(crypto) add_subdirectory(functional_tests) add_subdirectory(performance_tests) add_subdirectory(core_proxy) +if (NOT DISABLE_SUPERNODE) add_subdirectory(unit_tests) +endif() add_subdirectory(difficulty) add_subdirectory(hash) add_subdirectory(net_load_tests) add_subdirectory(libwallet_api_tests) +if (NOT DISABLE_SUPERNODE) add_subdirectory(supernode_tests) +endif() # add_subdirectory(daemon_tests)