From: José Fonseca Date: Sat, 10 Mar 2012 16:05:09 +0000 (+0000) Subject: Allow to not build the CLI. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=ef0c697fddc05a99183ebb3f35caf0b76cfb3e61 Allow to not build the CLI. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index df4aed1..ab617d9 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ endif () # prescribed in http://www.gentoo.org/proj/en/qa/automagic.xml set (ENABLE_GUI "AUTO" CACHE STRING "Enable Qt GUI.") +set (ENABLE_CLI true CACHE BOOL "Enable command Line interface.") + set (ENABLE_EGL "AUTO" CACHE STRING "Enable EGL support.") @@ -617,7 +619,9 @@ endif () ############################################################################## # CLI -add_subdirectory(cli) +if (ENABLE_CLI) + add_subdirectory(cli) +endif () ############################################################################## # Scripts (to support the CLI)