Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -1,11 +1,21 @@
  4. project(kde-thumbnailer-ooxml)
  5. -cmake_minimum_required(VERSION 2.6)
  6. +cmake_minimum_required(VERSION 2.8.12)
  7. -find_package(KDE4 REQUIRED)
  8. -include(KDE4Defaults)
  9. +set(SHARED_MIME_INFO_MINIMUM_VERSION "0.30")
  10. -add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
  11. -include_directories(${QT_INCLUDES} ${KDE4_INCLUDES})
  12. +find_package(ECM REQUIRED NO_MODULE)
  13. +set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
  14. +
  15. +include(KDEInstallDirs)
  16. +include(KDECompilerSettings)
  17. +include(KDECMakeSettings)
  18. +include(FeatureSummary)
  19. +
  20. +find_package(Qt5 REQUIRED COMPONENTS Widgets)
  21. +find_package(KF5 REQUIRED COMPONENTS KDELibs4Support KIO Archive)
  22. +
  23. +add_definitions(${QT_DEFINITIONS})
  24. +include_directories(${QT_INCLUDES})
  25. set(libkowmf_SRCS
  26. libkowmf/WmfAbstractBackend.cpp
  27. @@ -17,9 +27,9 @@
  28. set(ooxmlthumbnail_SRCS ooxmlcreator.cpp ${libkowmf_SRCS})
  29. -kde4_add_plugin(ooxmlthumbnail ${ooxmlthumbnail_SRCS})
  30. -target_link_libraries(ooxmlthumbnail
  31. - ${KDE4_KIO_LIBS}
  32. +add_library(ooxmlthumbnail MODULE ${libkowmf_SRCS})
  33. +target_link_libraries(ooxmlthumbnail PRIVATE
  34. + KF5::KDELibs4Support KF5::KIOCore KF5::Archive
  35. ${QT_QTXML_LIBRARY}
  36. )