2012-05-18 02:45:23 -05:00
|
|
|
cmake_minimum_required (VERSION 2.8)
|
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
# Qt
|
|
|
|
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
|
|
|
|
include (${QT_USE_FILE})
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
project (cafUserInterface)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${cafProjectDataModel_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
include_directories (
|
|
|
|
${cafPdmCore_SOURCE_DIR}
|
|
|
|
${cafPdmUiCore_SOURCE_DIR}
|
|
|
|
${cafPdmXml_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
# These headers need to go through Qt's MOC compiler
|
|
|
|
set( QOBJECT_HEADERS
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiCheckBoxDelegate.h
|
2012-06-26 09:10:41 -05:00
|
|
|
cafPdmUiCheckBoxEditor.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiColorEditor.h
|
2012-06-26 09:10:41 -05:00
|
|
|
cafPdmUiComboBoxEditor.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiDoubleSliderEditor.h
|
2012-06-26 09:10:41 -05:00
|
|
|
cafPdmUiFilePathEditor.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiLineEditor.h
|
2012-06-26 09:10:41 -05:00
|
|
|
cafPdmUiListEditor.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiListView.h
|
|
|
|
cafPdmUiListViewEditor.h
|
|
|
|
cafPdmUiPropertyView.h
|
|
|
|
cafPdmUiPushButtonEditor.h
|
2012-06-26 09:10:41 -05:00
|
|
|
cafPdmUiSliderEditor.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiTableView.h
|
|
|
|
cafPdmUiTableViewDelegate.h
|
|
|
|
cafPdmUiTableViewEditor.h
|
|
|
|
cafPdmUiTableViewModel.h
|
2013-04-03 09:06:00 -05:00
|
|
|
cafPdmUiTextEditor.h
|
2015-08-13 08:23:33 -05:00
|
|
|
cafPdmUiToolButtonEditor.h
|
2013-09-02 01:14:29 -05:00
|
|
|
cafPdmUiTreeView.h
|
2014-04-11 04:06:42 -05:00
|
|
|
cafPdmUiTreeViewModel.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiTreeViewEditor.h
|
|
|
|
cafUiProcess.h
|
2012-05-18 02:45:23 -05:00
|
|
|
)
|
|
|
|
|
2012-09-18 08:21:04 -05:00
|
|
|
if ( (${CMAKE_VERSION} VERSION_LESS 2.8.6) OR (NOT CMAKE_AUTOMOC) )
|
|
|
|
qt4_wrap_cpp( MOC_FILES_CPP ${QOBJECT_HEADERS} )
|
|
|
|
endif()
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
set( PROJECT_FILES
|
|
|
|
|
|
|
|
# field editors
|
|
|
|
cafPdmUiCheckBoxDelegate.cpp
|
|
|
|
cafPdmUiCheckBoxDelegate.h
|
|
|
|
cafPdmUiCheckBoxEditor.cpp
|
|
|
|
cafPdmUiCheckBoxEditor.h
|
|
|
|
cafPdmUiColorEditor.cpp
|
|
|
|
cafPdmUiColorEditor.h
|
|
|
|
cafPdmUiComboBoxEditor.cpp
|
|
|
|
cafPdmUiComboBoxEditor.h
|
|
|
|
cafPdmUiDoubleSliderEditor.cpp
|
|
|
|
cafPdmUiDoubleSliderEditor.h
|
2015-10-23 04:03:23 -05:00
|
|
|
cafPdmUiDragDropInterface.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiFilePathEditor.cpp
|
|
|
|
cafPdmUiFilePathEditor.h
|
|
|
|
cafPdmUiLineEditor.cpp
|
|
|
|
cafPdmUiLineEditor.h
|
|
|
|
cafPdmUiListEditor.cpp
|
|
|
|
cafPdmUiListEditor.h
|
|
|
|
cafPdmUiPushButtonEditor.cpp
|
|
|
|
cafPdmUiPushButtonEditor.h
|
|
|
|
cafPdmUiSliderEditor.cpp
|
|
|
|
cafPdmUiSliderEditor.h
|
|
|
|
cafPdmUiTextEditor.cpp
|
|
|
|
cafPdmUiTextEditor.h
|
|
|
|
cafPdmUiToolBarEditor.cpp
|
|
|
|
cafPdmUiToolBarEditor.h
|
|
|
|
cafPdmUiToolButtonEditor.cpp
|
|
|
|
cafPdmUiToolButtonEditor.h
|
|
|
|
|
|
|
|
# object editors
|
|
|
|
cafPdmUiDefaultObjectEditor.cpp
|
|
|
|
cafPdmUiDefaultObjectEditor.h
|
|
|
|
cafPdmUiListView.cpp
|
2015-08-20 02:57:38 -05:00
|
|
|
cafPdmUiListView.h
|
2013-09-04 05:08:39 -05:00
|
|
|
cafPdmUiListViewEditor.cpp
|
|
|
|
cafPdmUiListViewEditor.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiTableItemEditor.cpp
|
|
|
|
cafPdmUiTableItemEditor.h
|
|
|
|
cafPdmUiTableView.cpp
|
|
|
|
cafPdmUiTableView.h
|
|
|
|
cafPdmUiTableViewDelegate.cpp
|
|
|
|
cafPdmUiTableViewDelegate.h
|
|
|
|
cafPdmUiTableViewEditor.cpp
|
|
|
|
cafPdmUiTableViewEditor.h
|
|
|
|
cafPdmUiTableViewModel.cpp
|
|
|
|
cafPdmUiTableViewModel.h
|
|
|
|
cafPdmUiTreeEditorHandle.cpp
|
|
|
|
cafPdmUiTreeEditorHandle.h
|
|
|
|
cafPdmUiTreeItemEditor.cpp
|
|
|
|
cafPdmUiTreeItemEditor.h
|
|
|
|
cafPdmUiTreeView.cpp
|
2015-08-20 02:57:38 -05:00
|
|
|
cafPdmUiTreeView.h
|
2013-09-02 01:14:29 -05:00
|
|
|
cafPdmUiTreeViewEditor.cpp
|
|
|
|
cafPdmUiTreeViewEditor.h
|
2014-04-11 04:06:42 -05:00
|
|
|
cafPdmUiTreeViewModel.cpp
|
|
|
|
cafPdmUiTreeViewModel.h
|
2015-07-29 07:19:43 -05:00
|
|
|
cafPdmUiPropertyView.cpp
|
|
|
|
cafPdmUiPropertyView.h
|
|
|
|
cafPdmUiPropertyViewDialog.cpp
|
|
|
|
cafPdmUiPropertyViewDialog.h
|
|
|
|
|
|
|
|
# div
|
|
|
|
cafAboutDialog.cpp
|
|
|
|
cafAboutDialog.h
|
|
|
|
cafProgressInfo.cpp
|
|
|
|
cafProgressInfo.h
|
|
|
|
cafUiProcess.cpp
|
|
|
|
cafUiProcess.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library( ${PROJECT_NAME}
|
|
|
|
|
|
|
|
${PROJECT_FILES}
|
2012-06-26 09:10:41 -05:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
${MOC_FILES_CPP}
|
|
|
|
)
|
2015-07-29 07:19:43 -05:00
|
|
|
|
|
|
|
target_link_libraries ( ${PROJECT_NAME}
|
|
|
|
cafProjectDataModel
|
|
|
|
cafPdmUiCore
|
|
|
|
cafPdmCore
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
source_group("" FILES ${PROJECT_FILES})
|