memgraph/tools/CMakeLists.txt
Teon Banek a17261038c Include tools CMakeLists in the top level CMakeLists
Summary:
Split main CMakeLists into src/CMakeLists

The main CMakeLists duty is to make all the required libraries and
variables visible to all of the other sub-CMakeLists. After doing that,
it should include those sub-CMakeLists according to configuration
options.

This should make global configurations easier to reuse without polluting
the global space with locally related configurations. It is a necessary
step for including other projects like 'tools' in the release
installation.

Building tools is automatically disabled, but can be enabled by setting
the TOOLS option to ON when running cmake. This should allow on demand
building as well as combined installation of Memgraph and its tools.

Reviewers: mferencevic, buda

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1018
2017-12-04 15:18:18 +01:00

14 lines
388 B
CMake

# MemGraph Tools CMake configuration
# You should use the top level CMake configuration with -DTOOLS=ON option set.
project(memgraph_tools VERSION ${memgraph_VERSION})
disallow_in_source_build()
# Everything that is installed here, should be under the "tools" component.
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "tools")
add_subdirectory(src)
enable_testing()
add_subdirectory(tests)