aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-08-22 23:23:02 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-08-22 23:23:02 +0800
commitf789e25d85bdc8582ae0e4c9dabbb5ac0bbfd69c (patch)
treeb76d23b0a72fe655b6b8be715e96051978728475 /CMakeLists.txt
parentd0526a3b74a003dfc6f805682693be9173ffcd88 (diff)
downloadexternal_heimdall-f789e25d85bdc8582ae0e4c9dabbb5ac0bbfd69c.zip
external_heimdall-f789e25d85bdc8582ae0e4c9dabbb5ac0bbfd69c.tar.gz
external_heimdall-f789e25d85bdc8582ae0e4c9dabbb5ac0bbfd69c.tar.bz2
Add an option to disable GUI
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4f694d..4dd4fb6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,8 +8,11 @@ project(Heimdall)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
+option(DISABLE_FRONTEND "Disable GUI frontend" OFF)
+
add_subdirectory(libpit)
add_subdirectory(heimdall)
-add_subdirectory(heimdall-frontend)
-
-add_dependencies(heimdall-frontend heimdall)
+if(NOT DISABLE_FRONTEND)
+ add_subdirectory(heimdall-frontend)
+ add_dependencies(heimdall-frontend heimdall)
+endif()