TDE core libraries
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.

86 lines
2.2KB

  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_directories(
  12. ${TQT_INCLUDE_DIRS}
  13. ${CMAKE_BINARY_DIR}
  14. ${CMAKE_CURRENT_BINARY_DIR}
  15. ${CMAKE_SOURCE_DIR}/dcop
  16. ${CMAKE_BINARY_DIR}/tdecore
  17. ${CMAKE_SOURCE_DIR}/tdecore
  18. ${CMAKE_SOURCE_DIR}/tdeui
  19. ${CMAKE_SOURCE_DIR}/tdeio
  20. ${CMAKE_SOURCE_DIR}/tdeio/tdefile
  21. ${CMAKE_SOURCE_DIR}/tdeio/tdeio
  22. )
  23. link_directories(
  24. ${TQT_LIBRARY_DIRS}
  25. )
  26. ##### tdetradertest ###############################
  27. set( target tdetradertest )
  28. set( ${target}_SRCS
  29. tdetradertest.cpp
  30. )
  31. tde_add_executable( ${target}
  32. SOURCES ${${target}_SRCS}
  33. LINK tdeio-shared
  34. DESTINATION ${BIN_INSTALL_DIR}
  35. )
  36. ##### check and test ##############################
  37. # Force assertions to work
  38. add_definitions( -UNDEBUG )
  39. set( CHECKS
  40. getalltest jobtest kdcopcheck kdefaultprogresstest kdirlistertest
  41. kdirwatchtest kfiltertest kionetrctest kiopassdlgtest kmfitest kmimefromext
  42. kmimemagictest kpropsdlgtest kprotocolinfotest kruntest kscantest kshredtest
  43. ktartest kurifiltertest kurlcompletiontest kziptest metatest netaccesstest
  44. previewtest speed tdeioslavetest tdesycocatest tdesycocaupdatetest
  45. kmimetypetest
  46. )
  47. foreach( _check ${CHECKS} )
  48. tde_add_check_executable( ${_check} AUTOMOC LINK tdeio-shared )
  49. endforeach( )
  50. # NOTE some apps here are suitable to be run as tests but not included due to
  51. # following reasons:
  52. # - jobtest may fail if run on an unusual system configuration
  53. # and requires GUI
  54. # - kprotocolinfotest tries to connect to network and requires running DCOP
  55. # - kurifiltertest requires network access and GUI
  56. # - tdesycocatest requires installed tdebase and GUI
  57. set( TESTS dataprotocoltest kacltest )
  58. foreach( _check ${TESTS} )
  59. tde_add_check_executable( ${_check} AUTOMOC LINK tdeio-shared TEST)
  60. endforeach( )
  61. configure_file( kmimetypetest.sh.cmake kmimetypetest.sh @ONLY )
  62. add_test( NAME "tdeio/kmimetypetest"
  63. COMMAND sh -x "${CMAKE_CURRENT_BINARY_DIR}/kmimetypetest.sh"
  64. WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" )
  65. # TODO add kdirwatchunittest