diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-08-22 23:23:02 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-08-22 23:23:02 +0800 |
commit | f789e25d85bdc8582ae0e4c9dabbb5ac0bbfd69c (patch) | |
tree | b76d23b0a72fe655b6b8be715e96051978728475 /CMakeLists.txt | |
parent | d0526a3b74a003dfc6f805682693be9173ffcd88 (diff) | |
download | external_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.txt | 9 |
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() |