Commit 68394bbe authored by Laurent Montel's avatar Laurent Montel 😁

Start to make it compile

parent 3f8219dd
project(lskat)
if(NOT COMPILING_KDEGAMES)
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
include(MacroLibrary)
find_package(KDEGames REQUIRED)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")
find_package(ECM 1.3.0 REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test)
find_package(KF5 REQUIRED COMPONENTS
CoreAddons
Config
ItemModels
WidgetsAddons
WindowSystem
Config
DBusAddons
I18n
ConfigWidgets
TextWidgets
XmlGui
KIO
NotifyConfig
NewStuff
KDELibs4Support)
find_package(KF5KDEGames 4.9.0 REQUIRED)
find_package(Phonon4Qt5 CONFIG REQUIRED)
include(FeatureSummary)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DTRANSLATION_DOMAIN="lskat")
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
include_directories(${KDEGAMES_INCLUDE_DIRS} ${KDE4_INCLUDES} ${QDBUS_INCLUDE_DIRS})
endif(NOT COMPILING_KDEGAMES)
add_subdirectory(src)
add_subdirectory(grafix)
......@@ -18,5 +45,5 @@ add_subdirectory(doc)
########### install files ###############
install( PROGRAMS lskat.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
kde4_install_icons( ${ICON_INSTALL_DIR} )
ecm_install_icons( ${ICON_INSTALL_DIR} )
########### install files ###############
#
#
kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR lskat)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR lskat)
include_directories( ${CMAKE_SOURCE_DIR}/libkdegames/kgame )
include_directories( ${CMAKE_SOURCE_DIR}/libKF5KDEGames/kgame )
set( lskat_SRCS
thememanager.cpp
......@@ -27,16 +27,16 @@ set( lskat_SRCS
fromlibkdegames/kcarddialog.cpp )
kde4_add_ui_files( lskat_SRCS
ki18n_wrap_ui( lskat_SRCS
namedialog.ui
fromlibkdegames/kgamecardselector.ui )
configure_file(config-src.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-src.h)
kde4_add_app_icon(lskat_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../hi*-app-lskat.png")
kde4_add_executable( lskat ${lskat_SRCS} )
add_executable( lskat ${lskat_SRCS} )
target_link_libraries( lskat kdegames ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${QT_QTSVG_LIBRARY} )
target_link_libraries( lskat KF5KDEGames KF5::KDELibs4Support Qt5::Gui Qt5::Svg )
install(TARGETS lskat ${INSTALL_TARGETS_DEFAULT_ARGS} )
......
......@@ -100,4 +100,4 @@ void AbstractDisplay::createCardSprites()
}// next
}
#include "abstractdisplay.moc"
......@@ -49,4 +49,4 @@ Player* AbstractEngine::player(int no)
}
#include "abstractengine.moc"
......@@ -56,4 +56,4 @@ bool AbstractInput::inputAllowed()
}
#include "abstractinput.moc"
......@@ -803,4 +803,4 @@ bool AiInput::isLegalMove(int card1, int card2, int pl, const AiInput::Board& cu
return true;
}
#include "aiinput.moc"
......@@ -141,4 +141,4 @@ void ConfigTwo::setInputType(int no, InputDeviceType type)
}
#include "config_two.moc"
......@@ -206,4 +206,4 @@ QString Deck::name(Suite suite, CardType type)
}
#include "deck.moc"
......@@ -249,4 +249,4 @@ void DisplayIntro::loop()
}
#include "display_intro.moc"
......@@ -423,4 +423,4 @@ void DisplayTwo::showMove(int no)
}
#include "display_two.moc"
......@@ -510,4 +510,4 @@ int EngineTwo::whoWonMove(int card1, int card2, Suite trump)
}
#include "engine_two.moc"
......@@ -494,4 +494,4 @@ void KCardCache::invalidateCache()
d->cache->discard();
}
#include "cardcache_p.moc"
......@@ -205,4 +205,4 @@ KCardDialog::KCardDialog( KCardWidget* widget )
setButtons(KDialog::Ok | KDialog::Cancel);
}
#include "kcarddialog.moc"
......@@ -247,4 +247,4 @@ void GameView::drawItems(QPainter* painter, int numItems, QGraphicsItem* items[]
}
#include "gameview.moc"
......@@ -680,4 +680,4 @@ void Mainwindow::setInputType(int no, InputDeviceType type)
}
#include "mainwindow.moc"
......@@ -53,4 +53,4 @@ void MouseInput::mousePress(const QPoint &point)
}
#include "mouseinput.moc"
......@@ -62,4 +62,4 @@ QString NameDialogWidget::name(int pos)
}
}
#include "namedialogwidget.moc"
......@@ -339,4 +339,4 @@ void Player::refresh()
emit signalUpdate(this);
}
#include "player.moc"
......@@ -398,5 +398,5 @@ Themable::~Themable()
}
#include "thememanager.moc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment