Skip to content

Commit

Permalink
Refer to new Widgets component
Browse files Browse the repository at this point in the history
  • Loading branch information
rolk committed Aug 3, 2017
1 parent 29ce77e commit b2a6a37
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions ApplicationCode/GeoMech/GeoMechDataModel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8)
project (RigGeoMechDataModel)
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core)
find_package(Qt5 COMPONENTS Core Widgets)
else()
find_package(Qt4 COMPONENTS QtCore)
include(${QT_USE_FILE})
Expand Down Expand Up @@ -45,6 +45,6 @@ add_library( ${PROJECT_NAME}
RimGeoMechGeometrySelectionItem.cpp
)
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core)
qt5_use_modules(${PROJECT_NAME} Core Widgets)
endif()
target_link_libraries( ${PROJECT_NAME} LibCore cafTensor ResultStatisticsCache)
4 changes: 2 additions & 2 deletions ApplicationCode/WellPathImportSsihub/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8)
project (WellPathImportSsihub)
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core Gui Network)
find_package(Qt5 COMPONENTS Core Gui Widgets Network)
else()
find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork)
include(${QT_USE_FILE})
Expand Down Expand Up @@ -56,5 +56,5 @@ add_library( ${PROJECT_NAME}
${HEADER_FILES}
)
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core Gui Network)
qt5_use_modules(${PROJECT_NAME} Core Gui Widgets Network)
endif()
2 changes: 1 addition & 1 deletion Fwk/AppFwk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8)
project (CeeApp)
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core Gui OpenGL REQUIRED)
find_package(Qt5 COMPONENTS Core Gui Widgets OpenGL REQUIRED)
else()
find_package (Qt4 COMPONENTS QtCore QtGui QtMain QtOpenGl REQUIRED)
include (${QT_USE_FILE})
Expand Down
4 changes: 2 additions & 2 deletions Fwk/AppFwk/CommonCode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project (CommonCode)
# Qt
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core Gui OpenGL)
find_package(Qt5 COMPONENTS Core Gui Widgets OpenGL)
else()
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain QtOpenGl )
include (${QT_USE_FILE})
Expand Down Expand Up @@ -62,5 +62,5 @@ add_library( ${PROJECT_NAME}
${MOC_FILES_CPP}
)
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core Gui OpenGL)
qt5_use_modules(${PROJECT_NAME} Core Gui Widgets OpenGL)
endif()
4 changes: 2 additions & 2 deletions Fwk/AppFwk/cafAnimControl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project (cafAnimControl)
# Qt
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core Gui)
find_package(Qt5 COMPONENTS Core Gui Widgets)
else()
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
include (${QT_USE_FILE})
Expand Down Expand Up @@ -45,5 +45,5 @@ add_library( ${PROJECT_NAME}
${MOC_FILES_CPP}
)
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core Gui)
qt5_use_modules(${PROJECT_NAME} Core Gui Widgets)
endif()
4 changes: 2 additions & 2 deletions Fwk/AppFwk/cafCommand/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8)
# Qt
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core Gui)
find_package(Qt5 COMPONENTS Core Gui Widgets)
else()
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
include (${QT_USE_FILE})
Expand Down Expand Up @@ -78,6 +78,6 @@ add_library( ${PROJECT_NAME}
${MOC_FILES_CPP}
)
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core Gui)
qt5_use_modules(${PROJECT_NAME} Core Gui Widgets)
endif()
source_group("" FILES ${PROJECT_FILES})
4 changes: 2 additions & 2 deletions Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project (cafPdmUiCore)
# Qt
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core Gui)
find_package(Qt5 COMPONENTS Core Gui Widgets)
else()
find_package ( Qt4 COMPONENTS QtCore QtGui )
include (${QT_USE_FILE})
Expand Down Expand Up @@ -58,7 +58,7 @@ add_library( ${PROJECT_NAME}
${PROJECT_FILES}
)
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core Gui)
qt5_use_modules(${PROJECT_NAME} Core Gui Widgets)
endif()

source_group("" FILES ${PROJECT_FILES})
4 changes: 2 additions & 2 deletions Fwk/AppFwk/cafUserInterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8)
# Qt
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core Gui)
find_package(Qt5 COMPONENTS Core Gui Widgets)
else()
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
include (${QT_USE_FILE})
Expand Down Expand Up @@ -143,7 +143,7 @@ add_library( ${PROJECT_NAME}
${MOC_FILES_CPP}
)
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core Gui)
qt5_use_modules(${PROJECT_NAME} Core Gui Widgets)
endif()

target_link_libraries ( ${PROJECT_NAME}
Expand Down
4 changes: 2 additions & 2 deletions Fwk/AppFwk/cafViewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project (cafViewer)
# Qt
option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core Gui)
find_package(Qt5 COMPONENTS Core Gui Widgets)
else()
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
include (${QT_USE_FILE})
Expand Down Expand Up @@ -54,5 +54,5 @@ add_library( ${PROJECT_NAME}
${MOC_FILES_CPP}
)
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core Gui)
qt5_use_modules(${PROJECT_NAME} Core Gui Widgets)
endif()
4 changes: 2 additions & 2 deletions Fwk/VizFwk/LibGuiQt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif()

option(USE_QT5 "Use version 5.x of the Qt library" OFF)
if(USE_QT5)
find_package(Qt5 COMPONENTS Core REQUIRED)
find_package(Qt5 COMPONENTS Core Widgets REQUIRED)
else()
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
Expand Down Expand Up @@ -46,5 +46,5 @@ cvfqtUtils.cpp

add_library(${PROJECT_NAME} ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})
if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Core)
qt5_use_modules(${PROJECT_NAME} Core Widgets)
endif()

0 comments on commit b2a6a37

Please sign in to comment.