aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2016-02-21 17:10:13 +1100
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2016-02-21 17:10:13 +1100
commita59a290e235b5ee939039ce4920e39d1057a4635 (patch)
treef00825c0d267a16d61fe2e20e1d0f2200b4b4325
parent8e45fd81c97a40207035daf1c06019fcf40f8fba (diff)
parentf789e25d85bdc8582ae0e4c9dabbb5ac0bbfd69c (diff)
downloadexternal_heimdall-a59a290e235b5ee939039ce4920e39d1057a4635.zip
external_heimdall-a59a290e235b5ee939039ce4920e39d1057a4635.tar.gz
external_heimdall-a59a290e235b5ee939039ce4920e39d1057a4635.tar.bz2
Merge pull request #287 from yan12125/allow-disable-gui
Add an option to disable the frontend when building
-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()