diff --git a/CMakeLists.txt b/CMakeLists.txt index e9d5aadf381..62d49823b47 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -284,16 +284,17 @@ set(ALL_SUBDIRS foreach(d ${ALL_SUBDIRS}) add_subdirectory(${d}) endforeach() + +if(WITH_GUI) + add_subdirectory(gui) +endif() + add_custom_target( ALL_MODULES DEPENDS ${modules_list} COMMENT "Building all modules.") set_target_properties(ALL_MODULES PROPERTIES FOLDER Misc) -if(WITH_GUI) - add_subdirectory(gui) -endif() - if(WITH_DOCS) add_subdirectory(doc) add_subdirectory(man)