moving classes where they are used
[duncan/yast2-qt4.git] / src / pkg / CMakeLists.txt
1 ################################################################
2 # package selector
3 ################################################################
4
5 FIND_PACKAGE(Zypp REQUIRED)
6
7 INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${QT_QT3SUPPORT_INCLUDE_DIR} "${CMAKE_SOURCE_DIR}/src/pkg" ${ZYPP_INCLUDE_DIR})
8
9 ADD_DEFINITIONS(
10 -DY2LOG=\\\"QT4\\\" ${QT_DEFINITIONS}
11 -DQT3_SUPPORT
12 -DICONDIR=\\"${Y2QT_ICONDIR}\\"
13 -DLOCALEDIR=\\\"${Y2QT_LOCALEDIR}\\\"
14 -DTHEMEDIR=\\\"${Y2QT_THEMEDIR}\\\"
15 -DQTLIBDIR=\\\"${LIB_INSTALL_DIR}\\\"
16 -DHELPIMAGEDIR=\\\"${CMAKE_INSTALL_PREFIX}/share/YaST2/images\\\"
17 )
18 SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-format-nonliteral -fmessage-length=0" )
19
20 SET(qt4_yast_pkg_plugin_SRCS YQPackageSelectorBase.cc YQPackageSelector.cc YQPackageSelectorHelp.cc YQPatternSelector.cc YQPkgChangeLogView.cc YQPkgChangesDialog.cc YQPkgConflictDialog.cc YQPkgConflictList.cc YQPkgDependenciesView.cc YQPkgDescriptionDialog.cc YQPkgDescriptionView.cc YQPkgDiskUsageList.cc YQPkgDiskUsageWarningDialog.cc YQPkgFileListView.cc YQPkgGenericDetailsView.cc YQPkgLangList.cc YQPkgList.cc YQPkgObjList.cc YQPkgPatchFilterView.cc YQPkgPatchList.cc YQPkgPatternList.cc YQPkgProductDialog.cc YQPkgProductList.cc YQPkgRepoFilterView.cc YQPkgRepoList.cc YQPkgRpmGroupTagsFilterView.cc YQPkgSearchFilterView.cc YQPkgSelDescriptionView.cc YQPkgSelList.cc YQPkgSelMapper.cc YQPkgStatusFilterView.cc YQPkgTechnicalDetailsView.cc YQPkgTextDialog.cc YQPkgUpdateProblemFilterView.cc YQPkgVersionsView.cc YQSimplePatchSelector.cc QY2LayoutUtils.cc )
21
22 QT4_AUTOMOC(${qt4_yast_pkg_plugin_SRCS})
23
24 INCLUDE_DIRECTORIES( ${QT_INCLUDES} )
25 INCLUDE_DIRECTORIES( ${YAST_INCLUDE_DIR} )
26 INCLUDE_DIRECTORIES( ${YAST_INCLUDE_DIR}/yui )
27
28 ADD_LIBRARY( py2qt4_pkg SHARED ${qt4_yast_pkg_plugin_SRCS})
29 TARGET_LINK_LIBRARIES( py2qt4_pkg ${YAST_LIBRARY} )
30 TARGET_LINK_LIBRARIES( py2qt4_pkg ${YAST_YCP_LIBRARY} )
31 TARGET_LINK_LIBRARIES( py2qt4_pkg ${YAST_PLUGIN_WFM_LIBRARY} )
32 TARGET_LINK_LIBRARIES( py2qt4_pkg ${QT_QTCORE_LIBRARY} )
33 TARGET_LINK_LIBRARIES( py2qt4_pkg ${QT_QTGUI_LIBRARY} )
34 TARGET_LINK_LIBRARIES( py2qt4_pkg ${QT_QT3SUPPORT_LIBRARY} )
35 TARGET_LINK_LIBRARIES( py2qt4_pkg ${YAST_PLUGIN_UI_LIBRARY} )
36 TARGET_LINK_LIBRARIES( py2qt4_pkg ${ZYPP_LIBRARY} )
37 SET_TARGET_PROPERTIES( py2qt4_pkg PROPERTIES SOVERSION 2 )
38
39 INSTALL(TARGETS py2qt4_pkg LIBRARY DESTINATION ${YAST_PLUGIN_DIR} )