Commit 6c2eeb5c authored by Laurent Montel's avatar Laurent Montel 😁

Use new KDE_ macro

parent cc43d0ca
......@@ -2,7 +2,7 @@ project(ksirk)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.2.0")
find_package(ECM 1.3.0 REQUIRED CONFIG)
find_package(ECM 1.7.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)
......@@ -30,6 +30,7 @@ find_package(KF5KDEGames 4.9.0 REQUIRED)
find_package(Phonon4Qt5 REQUIRED)
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
......
add_subdirectory(ksirkskineditor)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR ksirk)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR ksirk)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR ksirkskineditor)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR ksirkskineditor)
......@@ -128,14 +128,14 @@ target_link_libraries(ksirk
KF5::Wallet
)
install( TARGETS ksirk ${INSTALL_TARGETS_DEFAULT_ARGS})
install( TARGETS ksirk ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
ecm_install_icons( ICONS hi128-apps-ksirk.png hi16-apps-ksirk.png hi22-apps-ksirk.png hi32-apps-ksirk.png hi48-apps-ksirk.png hi64-apps-ksirk.png lo16-apps-ksirk.png lo32-apps-ksirk.png DESTINATION ${ICON_INSTALL_DIR} )
ecm_install_icons( ICONS hi128-apps-ksirk.png hi16-apps-ksirk.png hi22-apps-ksirk.png hi32-apps-ksirk.png hi48-apps-ksirk.png hi64-apps-ksirk.png lo16-apps-ksirk.png lo32-apps-ksirk.png DESTINATION ${KDE_INSTALL_ICONDIR} )
install( FILES ksirksettings.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( PROGRAMS org.kde.ksirk.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES ksirkui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ksirk )
install( FILES jabber.png DESTINATION ${DATA_INSTALL_DIR}/ksirk )
install( FILES ksirk.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
install( FILES ksirksettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} )
install( PROGRAMS org.kde.ksirk.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
install( FILES ksirkui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/ksirk )
install( FILES jabber.png DESTINATION ${KDE_INSTALL_DATADIR}/ksirk )
install( FILES ksirk.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} )
......@@ -151,6 +151,6 @@ set_target_properties(iris_ksirk PROPERTIES
SOVERSION 2
COMPILE_FLAGS -DIRISNET_STATIC
)
install(TARGETS iris_ksirk ${INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS iris_ksirk ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
......@@ -2,4 +2,4 @@ add_subdirectory( default )
# add_subdirectory( static )
# add_subdirectory( realpol )
install(FILES skinsdir DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins )
install(FILES skinsdir DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins )
install(FILES world.desktop DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/default/Data )
install(FILES world.desktop DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/default/Data )
......@@ -32,4 +32,4 @@ soldierKneeling.png
stopAttackAuto.png
upArrow.png
)
install( FILES ${pics_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/default/Images/ )
install( FILES ${pics_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/default/Images/ )
......@@ -14,5 +14,5 @@ japan.svg
uk.svg
us.svg)
install( FILES ${sprites_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/default/Images/sprites )
install( FILES ${sprites_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/default/Images/sprites )
......@@ -4,6 +4,6 @@ cannon.wav
crash.wav
roll.wav)
install(FILES ${sounds_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/default/Sounds)
install(FILES ${sounds_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/default/Sounds)
install(FILES world.desktop DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/default/Data )
install(FILES world.desktop DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/default/Data )
......@@ -32,4 +32,4 @@ soldierKneeling.png
stopAttackAuto.png
upArrow.png
)
install( FILES ${pics_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/default/Images/ )
install( FILES ${pics_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/default/Images/ )
......@@ -14,5 +14,5 @@ japan.svg
uk.svg
us.svg)
install( FILES ${sprites_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/default/Images/sprites )
install( FILES ${sprites_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/default/Images/sprites )
......@@ -4,6 +4,6 @@ cannon.wav
crash.wav
roll.wav)
install(FILES ${sounds_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/default/Sounds)
install(FILES ${sounds_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/default/Sounds)
install(FILES onu.xml DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/realpol/Data )
install(FILES onu.xml DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/realpol/Data )
......@@ -95,7 +95,7 @@ downArrow.png
upArrow.png
2UpArrow.png
)
install( FILES ${pics_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/realpol/Images/ )
install( FILES ${pics_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/realpol/Images/ )
# Images/countries/vietnam.png
# Images/countries/japan.png
......
......@@ -14,5 +14,5 @@ infantry3.svg
uk.svg
us.svg)
install( FILES ${sprites_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/realpol/Images/sprites )
install( FILES ${sprites_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/realpol/Images/sprites )
......@@ -4,6 +4,6 @@ canon.wav
crash.wav
roule.wav)
install(FILES ${sounds_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/realpol/Sounds)
install(FILES ${sounds_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/realpol/Sounds)
install(FILES world.desktop DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/static/Data )
install(FILES world.desktop DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/static/Data )
......@@ -32,4 +32,4 @@ soldierKneeling.png
stopAttackAuto.png
upArrow.png
)
install( FILES ${pics_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/static/Images/ )
install( FILES ${pics_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/static/Images/ )
......@@ -4,6 +4,6 @@ cannon.wav
crash.wav
roll.wav)
install(FILES ${sounds_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirk/skins/static/Sounds)
install(FILES ${sounds_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirk/skins/static/Sounds)
......@@ -58,18 +58,18 @@ target_link_libraries(ksirkskineditor
${CRYPT_LIBS}
)
install( TARGETS ksirkskineditor ${INSTALL_TARGETS_DEFAULT_ARGS})
install( TARGETS ksirkskineditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
ecm_install_icons( ${ICON_INSTALL_DIR} )
ecm_install_icons( ${KDE_INSTALL_ICONDIR} )
install( FILES ksirkskineditorsettings.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( PROGRAMS org.kde.ksirkskineditor.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES ksirkskineditorui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ksirkskineditor )
install( FILES ksirkskineditorsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} )
install( PROGRAMS org.kde.ksirkskineditor.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
install( FILES ksirkskineditorui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/ksirkskineditor )
set (pics_default_DATA
cross.png
target.png
)
install( FILES ${pics_default_DATA} DESTINATION ${DATA_INSTALL_DIR}/ksirkskineditor/ )
install( FILES ${pics_default_DATA} DESTINATION ${KDE_INSTALL_DATADIR}/ksirkskineditor/ )
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