Commit 0b7fd500 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Organize all source files in src/ subdir

parent 0ac380d3
......@@ -36,13 +36,14 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
find_package(KF5KDEGames 4.9.0 REQUIRED)
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(FeatureSummary)
set(CMAKE_CXX_STANDARD 14)
add_definitions(
......@@ -54,79 +55,18 @@ add_definitions(
-DQT_STRICT_ITERATORS
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
-DQT_NO_KEYWORDS
-DQT_NO_FOREACH
-DQT_DISABLE_DEPRECATED_BEFORE=0x050700
-DQT_DEPRECATED_WARNINGS_SINCE=0x060000
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x051E00
-DKF_DEPRECATED_WARNINGS_SINCE=0x060000
)
if (${KF5Config_VERSION} STRGREATER "5.56.0")
add_definitions(-DQT_NO_FOREACH)
MESSAGE(STATUS "compile without foreach")
endif()
add_subdirectory(pics)
add_subdirectory(sounds)
add_subdirectory(icons)
add_subdirectory(doc)
########### next target ##############
set(kreversi_SRCS
commondefs.cpp
colorscheme.cpp
kreversigame.cpp
kreversiview.cpp
kreversiplayer.cpp
kreversihumanplayer.cpp
kreversicomputerplayer.cpp
startgamedialog.cpp
Engine.cpp
highscores.cpp
kexthighscore.cpp
kexthighscore_gui.cpp
kexthighscore_internal.cpp
kexthighscore_item.cpp
kexthighscore_tab.cpp
mainwindow.cpp
main.cpp
)
ecm_setup_version(${KREVERSI_VERSION}
VARIABLE_PREFIX KREVERSI
VERSION_HEADER kreversi_version.h
)
qt5_add_resources(kreversi_SRCS kreversi.qrc)
ki18n_wrap_ui(kreversi_SRCS startgamedialog.ui)
kconfig_add_kcfg_files(kreversi_SRCS preferences.kcfgc)
file(GLOB ICON_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/hicolor/*-apps-kreversi.png")
ecm_add_app_icon(kreversi_SRCS ICONS ${ICON_SRCS})
add_executable(kreversi ${kreversi_SRCS})
target_link_libraries(kreversi
Qt5::Svg
KF5::ConfigCore
KF5::ConfigGui
KF5::CoreAddons
KF5::Crash
KF5::DBusAddons
KF5::Declarative
KF5::IconThemes
KF5::KIOCore
KF5::KIOFileWidgets
KF5::WidgetsAddons
KF5::XmlGui
KF5KDEGames
)
install(TARGETS kreversi ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
install(PROGRAMS org.kde.kreversi.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(DIRECTORY qml DESTINATION ${KDE_INSTALL_DATADIR}/kreversi)
install(FILES org.kde.kreversi.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
add_subdirectory(src)
ki18n_install(po)
kdoctools_install(po)
......
set(kreversi_SRCS
commondefs.cpp
colorscheme.cpp
kreversigame.cpp
kreversiview.cpp
kreversiplayer.cpp
kreversihumanplayer.cpp
kreversicomputerplayer.cpp
startgamedialog.cpp
Engine.cpp
highscores.cpp
kexthighscore.cpp
kexthighscore_gui.cpp
kexthighscore_internal.cpp
kexthighscore_item.cpp
kexthighscore_tab.cpp
mainwindow.cpp
main.cpp
)
ecm_setup_version(${KREVERSI_VERSION}
VARIABLE_PREFIX KREVERSI
VERSION_HEADER kreversi_version.h
)
qt5_add_resources(kreversi_SRCS kreversi.qrc)
ki18n_wrap_ui(kreversi_SRCS startgamedialog.ui)
kconfig_add_kcfg_files(kreversi_SRCS preferences.kcfgc)
file(GLOB ICON_SRCS "${CMAKE_SOURCE_DIR}/icons/hicolor/*-apps-kreversi.png")
ecm_add_app_icon(kreversi_SRCS ICONS ${ICON_SRCS})
add_executable(kreversi ${kreversi_SRCS})
target_link_libraries(kreversi
KF5::ConfigCore
KF5::ConfigGui
KF5::CoreAddons
KF5::Crash
KF5::DBusAddons
KF5::Declarative
KF5::IconThemes
KF5::KIOCore
KF5::KIOFileWidgets
KF5::WidgetsAddons
KF5::XmlGui
KF5KDEGames
Qt5::Svg
)
install(TARGETS kreversi ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(DIRECTORY qml DESTINATION ${KDE_INSTALL_DATADIR}/kreversi)
install(PROGRAMS org.kde.kreversi.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.kreversi.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
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