From f789e25d85bdc8582ae0e4c9dabbb5ac0bbfd69c Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Sat, 22 Aug 2015 23:23:02 +0800 Subject: Add an option to disable GUI --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') 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() -- cgit v1.1