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(BUILD_QT4) 0037 set(LIBS 0038 ${KDE4_KDECORE_LIBS} 0039 ${KDE4_KDEUI_LIBS} 0040 ${QT_USE_LIBSPREFIX}Core 0041 ${QT_USE_LIBSPREFIX}Network 0042 ) 0043 else() 0044 set(LIBS 0045 Qt5::Widgets 0046 Qt5::Network 0047 ${QT_BROWSER_LIB} 0048 KF5::CoreAddons 0049 KF5::I18n 0050 KF5::XmlGui 0051 ) 0052 add_definitions(-DTRANSLATION_DOMAIN=\"onlinequoteseditor\") 0053 endif() 0054 0055 target_link_libraries(onlinequoteseditor 0056 alkimia 0057 alkimia-internal 0058 ${LIBS} 0059 ) 0060 set_target_properties(onlinequoteseditor PROPERTIES OUTPUT_NAME onlinequoteseditor${TARGET_SUFFIX}) 0061 0062 install(TARGETS onlinequoteseditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0063 0064 configure_file(org.kde.onlinequoteseditor.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.desktop) 0065 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) 0066 0067 configure_file(org.kde.onlinequoteseditor.appdata.xml.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.appdata.xml) 0068 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) 0069 0070 if(APPSTREAMCLI) 0071 add_test( 0072 NAME appstreamtest 0073 COMMAND ${APPSTREAMCLI} validate ${CMAKE_CURRENT_BINARY_DIR}/org.kde.onlinequoteseditor${TARGET_SUFFIX}.appdata.xml 0074 ) 0075 else() 0076 message(STATUS "Could not set up the appstream test. appstreamcli is missing.") 0077 endif()