2012-05-18 09:45:23 +02:00
|
|
|
cmake_minimum_required (VERSION 2.8)
|
|
|
|
|
|
|
|
|
|
project (cafUserInterface)
|
|
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
|
${cafProjectDataModel_SOURCE_DIR}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# These headers need to go through Qt's MOC compiler
|
|
|
|
|
set( QOBJECT_HEADERS
|
|
|
|
|
cafBasicAboutDialog.h
|
|
|
|
|
cafUiTreeModelPdm.h
|
|
|
|
|
cafUiProcess.h
|
2012-06-26 16:10:41 +02:00
|
|
|
|
|
|
|
|
cafPdmUiLineEditor.h
|
|
|
|
|
cafPdmUiCheckBoxEditor.h
|
|
|
|
|
cafPdmUiComboBoxEditor.h
|
2012-08-31 19:12:47 +02:00
|
|
|
cafPdmUiPushButtonEditor.h
|
2012-06-26 16:10:41 +02:00
|
|
|
cafPdmUiFilePathEditor.h
|
|
|
|
|
cafPdmUiListEditor.h
|
|
|
|
|
cafPdmUiSliderEditor.h
|
2012-10-09 11:26:50 +02:00
|
|
|
cafPdmUiDoubleSliderEditor.h
|
|
|
|
|
|
2012-06-26 16:10:41 +02:00
|
|
|
cafPdmUiColorEditor.h
|
|
|
|
|
|
|
|
|
|
cafPdmUiPropertyView.h
|
2012-05-18 09:45:23 +02:00
|
|
|
)
|
|
|
|
|
|
2012-09-18 15:21:04 +02: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 09:45:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
add_library( ${PROJECT_NAME}
|
|
|
|
|
cafBasicAboutDialog.cpp
|
|
|
|
|
cafUiTreeModelPdm.cpp
|
|
|
|
|
cafUiProcess.cpp
|
2012-06-26 16:10:41 +02:00
|
|
|
cafPdmUiDefaultObjectEditor.cpp
|
|
|
|
|
cafProgressInfo.cpp
|
|
|
|
|
|
|
|
|
|
cafPdmUiLineEditor.cpp
|
|
|
|
|
cafPdmUiCheckBoxEditor.cpp
|
|
|
|
|
cafPdmUiComboBoxEditor.cpp
|
2012-08-31 19:12:47 +02:00
|
|
|
cafPdmUiPushButtonEditor.cpp
|
2012-06-26 16:10:41 +02:00
|
|
|
cafPdmUiFilePathEditor.cpp
|
|
|
|
|
cafPdmUiListEditor.cpp
|
|
|
|
|
cafPdmUiSliderEditor.cpp
|
2012-10-09 11:26:50 +02:00
|
|
|
cafPdmUiDoubleSliderEditor.cpp
|
2012-06-26 16:10:41 +02:00
|
|
|
cafPdmUiColorEditor.cpp
|
|
|
|
|
|
|
|
|
|
cafPdmUiPropertyView.cpp
|
2012-05-18 09:45:23 +02:00
|
|
|
${MOC_FILES_CPP}
|
|
|
|
|
)
|