Ticket #45300: patch-tests.2.diff

File patch-tests.2.diff, 1.5 KB (added by RJVB (René Bertin), 10 years ago)

deactivates the building of tests in CMake files

  • server/tests/unittest/CMakeLists.txt

    old new  
    7171
    7272add_server_test(partstreamertest.cpp akonadiprivate)
    7373
    74 add_server_test(akappendhandlertest.cpp akonadiprivate)
     74#add_server_test(akappendhandlertest.cpp akonadiprivate)
    7575add_server_test(linkhandlertest.cpp akonadiprivate)
    7676add_server_test(listhandlertest.cpp akonadiprivate)
    7777add_server_test(modifyhandlertest.cpp akonadiprivate)
  • CMakeLists.txt

    old new  
    2727include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
    2828include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/handler)
    2929include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/nepomuk)
    30 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/tests)
     30if(AKONADI_BUILD_TESTS AND BUILD_TESTING)
     31  include_directories(${CMAKE_CURRENT_SOURCE_DIR}/tests)
     32endif(AKONADI_BUILD_TESTS AND BUILD_TESTING)
    3133include_directories(${Akonadi_SOURCE_DIR}/shared)
    3234if(Soprano_FOUND)
    3335  include_directories(${SOPRANO_INCLUDE_DIR})
     
    6466add_subdirectory(akonadictl)
    6567add_subdirectory(control)
    6668add_subdirectory(src)
    67 add_subdirectory(tests)
     69if(AKONADI_BUILD_TESTS AND BUILD_TESTING)
     70  add_subdirectory(tests)
     71endif(AKONADI_BUILD_TESTS AND BUILD_TESTING)
    6872
    6973set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_ENABLE_EXCEPTIONS}")
    7074if(MYSQLD_EXECUTABLE)