moving classes where they are used
[duncan/yast2-qt4.git] / src / CMakeLists.txt
1 INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
2
3 ADD_DEFINITIONS(
4 -DY2LOG=\\\"QT4\\\" ${QT_DEFINITIONS}
5 -DQT_LOCALEDIR=\\\"${CMAKE_INSTALL_PREFIX}/share/qt4/translations\\\"
6 -DICONDIR=\\"${Y2QT_ICONDIR}\\"
7 -DLOCALEDIR=\\\"${Y2QT_LOCALEDIR}\\\"
8 -DLANG_FONTS_FILE=\\\"${CMAKE_INSTALL_PREFIX}/share/fonts/lang_fonts\\\"
9 -DTHEMEDIR=\\\"${Y2QT_THEMEDIR}\\\"
10 -DQTLIBDIR=\\\"${LIB_INSTALL_DIR}\\\"
11 )
12
13 SET(qt4_yast_plugin_SRCS
14   QY2CharValidator.cc QY2ComboTabWidget.cc QY2DiskUsageList.cc 
15   QY2ListView.cc QY2Settings.cc Y2CCQt.cc 
16   YFrameBuffer.cc YQAlignment.cc YQApplication.cc YQBarGraph.cc 
17   YQCheckBox.cc YQCheckBoxFrame.cc YQComboBox.cc YQDateField.cc 
18   YQDialog.cc YQDownloadProgress.cc YQDumbTab.cc YQEBunny.cc 
19   YQEmpty.cc YQFrame.cc YQGenericButton.cc YQIconPool.cc 
20   YQImage.cc YQInputField.cc YQIntField.cc YQLabel.cc YQLayoutBox.cc 
21   YQLogView.cc YQMenuButton.cc YQMultiLineEdit.cc 
22   YQMultiProgressMeter.cc YQMultiSelectionBox.cc 
23   YQOptionalWidgetFactory.cc YQPackageSelectorPlugin.cc 
24   YQPartitionSplitter.cc YQProgressBar.cc YQPushButton.cc 
25   YQRadioButton.cc YQRadioButtonGroup.cc YQReplacePoint.cc 
26   YQRichText.cc YQSelectionBox.cc YQSignalBlocker.cc YQSlider.cc
27   YQSpacing.cc YQSquash.cc YQTable.cc YQTimeField.cc YQTree.cc
28   YQUI_builtins.cc YQUI_core.cc YQUI_widgets.cc YQUI_x11.cc
29   YQWidgetCaption.cc YQWidgetFactory.cc YQWizardButton.cc YQWizard.cc
30 )
31
32 QT4_AUTOMOC(${qt4_yast_plugin_SRCS})
33
34 QT4_WRAP_UI(qt4_yast_plugin_SRCS QHelpDialog.ui)
35
36 INCLUDE_DIRECTORIES( ${QT_INCLUDES} )
37 INCLUDE_DIRECTORIES( ${YAST_INCLUDE_DIR} )
38 INCLUDE_DIRECTORIES( ${YAST_INCLUDE_DIR}/yui )
39
40 ADD_LIBRARY( py2qt4 SHARED ${qt4_yast_plugin_SRCS})
41 TARGET_LINK_LIBRARIES( py2qt4 ${YAST_LIBRARY} )
42 TARGET_LINK_LIBRARIES( py2qt4 ${YAST_YCP_LIBRARY} )
43 TARGET_LINK_LIBRARIES( py2qt4 ${YAST_PLUGIN_WFM_LIBRARY} )
44 TARGET_LINK_LIBRARIES( py2qt4 ${QT_QTCORE_LIBRARY} )
45 TARGET_LINK_LIBRARIES( py2qt4 ${QT_QTGUI_LIBRARY} )
46 TARGET_LINK_LIBRARIES( py2qt4 ${QT_QT3SUPPORT_LIBRARY} )
47 TARGET_LINK_LIBRARIES( py2qt4 ${YAST_PLUGIN_UI_LIBRARY} )
48 SET_TARGET_PROPERTIES( py2qt4 PROPERTIES SOVERSION 2 )
49
50 INSTALL(TARGETS py2qt4 LIBRARY DESTINATION ${YAST_PLUGIN_DIR} )
51
52 ADD_SUBDIRECTORY(pkg)
53
54 #SET_TARGET_PROPERTIES( y2lang_qt4 PROPERTIES PREFIX "" )
55