From b164fad1361505ff8dbf328107b645753ce331ac Mon Sep 17 00:00:00 2001 From: vvolkl Date: Mon, 24 Feb 2020 11:18:29 +0100 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e57e57..1179aea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ set(CMAKE_CXX_STANDARD 14 CACHE STRING "") #--- Declare options ----------------------------------------------------------- option(tricktrack_documentation "Create doxygen doc target." OFF) +option(tricktrack_profiling "Create profiling binaries." OFF) option(tricktrack_python "Create python bindings for tricktrack" OFF) option(tricktrack_logger "Use spdlog for logging" OFF) option(tricktrack_logger_standalone "Use spdlog standalone (as opposed to in a framework" OFF) @@ -85,7 +86,9 @@ add_subdirectory(src) if(BUILD_TESTING) add_subdirectory(tests) endif() -add_subdirectory(profiling) +if(tricktrack_profiling) + add_subdirectory(profiling) +endif() if (tricktrack_python) add_subdirectory(python) endif()