]> git.cworth.org Git - apitrace/commitdiff
Allow to not build the CLI.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 10 Mar 2012 16:05:09 +0000 (16:05 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 11 Mar 2012 13:31:49 +0000 (13:31 +0000)
CMakeLists.txt

index df4aed1d9199aa7a8c24d2be037381477f0145cc..ab617d9e83e77ee81f414fea10481043002e579a 100755 (executable)
@@ -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)