Warning, /office/alkimia/tools/onlinequoteseditor/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_subdirectory(icons)
0002
0003 include_directories(
0004 ${CMAKE_SOURCE_DIR}/src
0005 ${CMAKE_BINARY_DIR}/src
0006 )
0007
0008 set(SOURCES
0009 applicationsettings.cpp
0010 main.cpp
0011 mainwindow.cpp
0012 )
0013
0014 set(HEADERS
0015 applicationsettings.h
0016 mainwindow.h
0017 )
0018
0019 set(UI
0020 mainwindow.ui
0021 )
0022
0023 ki18n_wrap_ui(SOURCES ${UI} )
0024
0025 ecm_add_app_icon(SOURCES
0026 ICONS
0027 icons/16-apps-onlinequoteseditor5.png
0028 icons/22-apps-onlinequoteseditor5.png
0029 icons/32-apps-onlinequoteseditor5.png
0030 icons/48-apps-onlinequoteseditor5.png
0031 icons/64-apps-onlinequoteseditor5.png
0032 icons/128-apps-onlinequoteseditor5.png
0033 )
0034
0035 ecm_add_executable(onlinequoteseditor ${SOURCES} ${HEADERS})
0036 if(QT_MAJOR_VERSION GREATER_EQUAL 5)
0037 add_definitions(-DTRANSLATION_DOMAIN=\"onlinequoteseditor\")
0038 endif()
0039
0040 target_link_libraries(onlinequoteseditor
0041 alkimia
0042 alkimia-internal
0043 Qt${QT_MAJOR_VERSION}::Core
0044 KF${QT_MAJOR_VERSION}::CoreAddons
0045 KF${QT_MAJOR_VERSION}::I18n
0046 Qt${QT_MAJOR_VERSION}::Network
0047 Qt${QT_MAJOR_VERSION}::Widgets
0048 KF${QT_MAJOR_VERSION}::XmlGui
0049 )
0050 set_target_properties(onlinequoteseditor PROPERTIES OUTPUT_NAME onlinequoteseditor${TARGET_SUFFIX})
0051
0052 install(TARGETS onlinequoteseditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0053
0054 configure_file(org.kde.onlinequoteseditor.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.desktop)
0055 if (NOT XDG_APPS_INSTALL_DIR)
0056 set(XDG_APPS_INSTALL_DIR ${KDE_INSTALL_APPDIR})
0057 endif()
0058 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
0059
0060 configure_file(org.kde.onlinequoteseditor.appdata.xml.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.appdata.xml)
0061 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0062
0063 if(APPSTREAMCLI)
0064 add_test(
0065 NAME appstreamtest
0066 COMMAND ${APPSTREAMCLI} validate ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.appdata.xml
0067 )
0068 else()
0069 message(STATUS "Could not set up the appstream test. appstreamcli is missing.")
0070 endif()