Commit 40d6113e authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Reorganize source in src/ subdir

GIT_SILENT
parent 3ce45655
......@@ -52,60 +52,8 @@ add_subdirectory(rulesets)
add_subdirectory(themes)
#Reactivate
#add_subdirectory(tests)
add_subdirectory(src)
add_subdirectory(doc)
###### Building killbots executable ######
set(killbots_SRCS
main.cpp
coordinator.cpp
engine.cpp
mainwindow.cpp
numericdisplayitem.cpp
optionspage.cpp
renderer.cpp
ruleset.cpp
rulesetdetailsdialog.cpp
rulesetselector.cpp
scene.cpp
sprite.cpp
view.cpp
)
ecm_qt_declare_logging_category(killbots_SRCS
HEADER killbots_debug.h
IDENTIFIER KILLBOTS_LOG
CATEGORY_NAME org.kde.kdegames.killbots
DESCRIPTION "Killbots"
EXPORT KILLBOTS
)
qt5_add_resources(killbots_SRCS killbots.qrc)
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KILLBOTS VERSION_HEADER killbots_version.h)
kconfig_add_kcfg_files( killbots_SRCS settings.kcfgc rulesetbase.kcfgc )
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*-apps-killbots.png")
ecm_add_app_icon(killbots_SRCS ICONS ${ICONS_SRCS})
add_executable(killbots ${killbots_SRCS})
target_link_libraries(killbots
KF5KDEGames
Qt5::Xml
KF5::XmlGui
Qt5::Widgets
KF5::DBusAddons
KF5::Completion
KF5::Crash
KF5::I18n
)
###### Installing Files ######
install(TARGETS killbots ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.killbots.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.killbots.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES killbots.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
ecm_qt_install_logging_categories(
EXPORT KILLBOTS
FILE killbots.categories
DESTINATION "${KDE_INSTALL_LOGGINGCATEGORIESDIR}"
)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(killbots_SRCS
main.cpp
coordinator.cpp
engine.cpp
mainwindow.cpp
numericdisplayitem.cpp
optionspage.cpp
renderer.cpp
ruleset.cpp
rulesetdetailsdialog.cpp
rulesetselector.cpp
scene.cpp
sprite.cpp
view.cpp
)
ecm_qt_declare_logging_category(killbots_SRCS
HEADER killbots_debug.h
IDENTIFIER KILLBOTS_LOG
CATEGORY_NAME org.kde.kdegames.killbots
DESCRIPTION "Killbots"
EXPORT KILLBOTS
)
qt5_add_resources(killbots_SRCS killbots.qrc)
ecm_setup_version(${RELEASE_SERVICE_VERSION}
VARIABLE_PREFIX KILLBOTS
VERSION_HEADER killbots_version.h
)
kconfig_add_kcfg_files(killbots_SRCS settings.kcfgc rulesetbase.kcfgc)
file(GLOB ICONS_SRCS "${CMAKE_SOURCE_DIR}/icons/*-apps-killbots.png")
ecm_add_app_icon(killbots_SRCS ICONS ${ICONS_SRCS})
add_executable(killbots ${killbots_SRCS})
target_link_libraries(killbots
KF5::XmlGui
KF5::DBusAddons
KF5::Completion
KF5::Crash
KF5::I18n
KF5KDEGames
Qt5::Widgets
Qt5::Xml
)
install(TARGETS killbots ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.killbots.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.killbots.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES killbots.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
ecm_qt_install_logging_categories(
EXPORT KILLBOTS
FILE killbots.categories
DESTINATION "${KDE_INSTALL_LOGGINGCATEGORIESDIR}"
)
Supports Markdown
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