Commit 17664f58 authored by Laurent Montel's avatar Laurent Montel 😁

Make it visible only when we build test code

parent e768bac5
......@@ -84,6 +84,7 @@ set_package_properties(Boost PROPERTIES
if(BUILD_TESTING)
set(AKONADI_TESTS_EXPORT AKONADICORE_EXPORT)
set(AKONADIWIDGET_TESTS_EXPORT AKONADIWIDGETS_EXPORT)
add_definitions(-DBUILD_TESTING)
endif()
configure_file(akonaditests_export.h.in "${CMAKE_CURRENT_BINARY_DIR}/akonaditests_export.h")
configure_file(akonadiwidgetstests_export.h.in "${CMAKE_CURRENT_BINARY_DIR}/akonadiwidgetstests_export.h")
......
......@@ -160,8 +160,7 @@ private:
friend class SpecialCollectionsRequestJob;
friend class SpecialCollectionsRequestJobPrivate;
friend class SpecialCollectionsPrivate;
#if 1 // TODO do this only if building tests:
#ifdef BUILD_TESTING
friend class SpecialMailCollectionsTesting;
friend class LocalFoldersTest;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment