tdelibs
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.

CMakeLists.txt 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #################################################
  2. #
  3. # (C) 2010 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. include( ConfigureChecks.cmake )
  12. include_directories(
  13. ${TQT_INCLUDE_DIRS}
  14. ${CMAKE_CURRENT_BINARY_DIR}
  15. ${CMAKE_BINARY_DIR}
  16. ${CMAKE_CURRENT_SOURCE_DIR}
  17. ${CMAKE_BINARY_DIR}/tdecore
  18. ${CMAKE_SOURCE_DIR}/tdecore
  19. ${CMAKE_SOURCE_DIR}/tdeio
  20. ${CMAKE_SOURCE_DIR}/tdeio/tdeio
  21. ${CMAKE_SOURCE_DIR}/tdeioslave
  22. ${LIBXML2_INCLUDE_DIRS}
  23. ${LIBXSLT_INCLUDE_DIRS}
  24. )
  25. link_directories(
  26. ${TQT_LIBRARY_DIRS}
  27. )
  28. ##### other data ################################
  29. install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/checkXML DESTINATION ${BIN_INSTALL_DIR} )
  30. install( PROGRAMS move_tdeio_help_cache.sh DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
  31. install( FILES tdeio_help.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
  32. install( FILES help.protocol ghelp.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
  33. # FIXME why automake version is so complicated?
  34. # install-data-local:
  35. # @(for subdir in customization docbook; do \
  36. # for dir in `( cd $(srcdir)/$$subdir && find . -type d ! -name CVS | grep -v '\.svn' )`; do \
  37. # $(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksgmltools2/$$subdir/$$dir ;\
  38. # for file in `(cd $(srcdir)/$$subdir && ls -1 $$dir/*)`; do \
  39. # if test -f $(srcdir)/$$subdir/$$file; then \
  40. # $(INSTALL_DATA) $(srcdir)/$$subdir/$$file $(DESTDIR)$(kde_datadir)/ksgmltools2/$$subdir/$$file; fi ;\
  41. # done ;\
  42. # done ;\
  43. # done )
  44. install( DIRECTORY customization docbook DESTINATION ${DATA_INSTALL_DIR}/ksgmltools2 PATTERN ".svn" EXCLUDE )
  45. install( FILES man-template.docbook template.docbook DESTINATION ${DATA_INSTALL_DIR}/ksgmltools2 )
  46. ##### kbzipfilter_dummy ##############################
  47. tde_add_library( kbzipfilter_dummy STATIC_PIC
  48. SOURCES ${CMAKE_SOURCE_DIR}/tdeioslave/bzip2/kbzip2filter.cpp
  49. )
  50. #### tdeio_help ###################################
  51. set( target tdeio_help )
  52. set( ${target}_SRCS
  53. tdeio_help.cpp main.cpp xslt.cpp
  54. )
  55. tde_add_kpart( ${target} SHARED
  56. SOURCES ${${target}_SRCS}
  57. LINK kbzipfilter_dummy-static tdeio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES}
  58. DESTINATION ${PLUGIN_INSTALL_DIR}
  59. )
  60. #### tdeio_ghelp ###################################
  61. set( target tdeio_ghelp )
  62. set( ${target}_SRCS
  63. tdeio_help.cpp main_ghelp.cpp xslt.cpp
  64. )
  65. tde_add_kpart( ${target} SHARED
  66. SOURCES ${${target}_SRCS}
  67. LINK kbzipfilter_dummy-static tdeio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES}
  68. DESTINATION ${PLUGIN_INSTALL_DIR}
  69. )
  70. #### meinproc ###################################
  71. set( target meinproc )
  72. set( ${target}_SRCS
  73. meinproc.cpp xslt_pure.cpp
  74. )
  75. # FIXME I think this can be improved
  76. add_custom_command( OUTPUT xslt_pure.cpp COMMAND cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/xslt.cpp xslt_pure.cpp )
  77. set_source_files_properties( xslt_pure.cpp PROPERTIES COMPILE_FLAGS -DSIMPLE_XSLT )
  78. tde_add_executable( ${target}
  79. SOURCES ${${target}_SRCS}
  80. LINK kbzipfilter_dummy-static tdeio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES}
  81. DESTINATION ${BIN_INSTALL_DIR}
  82. )