Skip to content

Commit a85d0b6

Browse files
committed
[cmake] don't build Gui when minimal=on
1 parent 64becf9 commit a85d0b6

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ add_subdirectory (io)
399399
add_subdirectory (net)
400400
add_subdirectory (graf2d)
401401
add_subdirectory (graf3d)
402-
add_subdirectory (gui)
402+
if(NOT minimal)
403+
add_subdirectory (gui)
404+
endif()
403405
add_subdirectory (montecarlo)
404406
if(geom)
405407
add_subdirectory (geom)

test/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ ROOT_EXECUTABLE(eventexe MainEvent.cxx LIBRARIES Event RIO Tree TreePlayer Hist
6868
ROOT_ADD_TEST(test-event COMMAND eventexe)
6969

7070
#---guitest------------------------------------------------------------------------------------
71-
ROOT_EXECUTABLE(guitest guitest.cxx LIBRARIES RIO Gui Gpad Hist)
71+
if(NOT minimal) # gui is not built in minimal
72+
ROOT_EXECUTABLE(guitest guitest.cxx LIBRARIES RIO Gui Gpad Hist)
73+
endif()
7274

7375
#---hsimple------------------------------------------------------------------------------------
7476
#ROOT_EXECUTABLE(hsimple hsimple.cxx LIBRARIES RIO Tree Hist)

tree/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
add_subdirectory(tree)
88
add_subdirectory(treeplayer)
9-
add_subdirectory(treeviewer)
9+
if(NOT minimal) # gui is not built in minimal
10+
add_subdirectory(treeviewer)
11+
endif()
1012
if(webgui)
1113
add_subdirectory(webviewer)
1214
endif()

tree/ntuplebrowse/test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66

77
# @author Jakob Blomer CERN
88

9+
if(NOT minimal) # gui is not built in minimal
10+
return()
11+
endif()
12+
913
ROOT_ADD_GTEST(ntuple_browse ntuple_browse.cxx LIBRARIES Core Gui ROOTNTuple ROOTNTupleBrowse)

0 commit comments

Comments
 (0)