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