Skip to content

Commit

Permalink
CMake: add an option to disable building the gui
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoHep committed Jun 3, 2018
1 parent 8cc1295 commit 6dcb01c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ project(simc)

set (CMAKE_CXX_STANDARD 11)

option(BUILD_GUI "Build the Qt gui along with cli binary" ON)

### Git Hash ###
# Get the current working branch
execute_process(
Expand All @@ -27,7 +29,9 @@ add_custom_target(update_git_info ALL
DEPENDS engine/util/git_info.cpp)

add_subdirectory(engine)
add_subdirectory(qt)
if ( BUILD_GUI )
add_subdirectory(qt)
endif()
add_dependencies(engine update_git_info)

if ( CMAKE_COMPILER_IS_GNUCC )
Expand Down

0 comments on commit 6dcb01c

Please sign in to comment.