Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d0c76ea9 authored by Laurent Montel's avatar Laurent Montel 😁

Use same method as other repo

parent 12ac2a19
......@@ -38,10 +38,8 @@ ecm_setup_version(PROJECT VARIABLE_PREFIX AKONADICALENDAR
configure_file(akonadi-calendar-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/akonadi-calendar-version.h @ONLY)
if(BUILD_TESTING)
set(AKONADI_CALENDAR_TESTS_EXPORT AKONADI_CALENDAR_EXPORT)
endif()
configure_file(akonadi-calendar_tests_export.h.in "${CMAKE_CURRENT_BINARY_DIR}/src/akonadi-calendar_tests_export.h" @ONLY)
add_definitions(-DBUILD_TESTING)
endif(BUILD_TESTING)
########### Find packages ###########
find_package(KF5KIO ${KF5_VERSION} CONFIG REQUIRED)
......
#include "akonadi-calendar_export.h"
#define AKONADI_CALENDAR_TESTS_EXPORT @AKONADI_CALENDAR_TESTS_EXPORT@
#ifndef AKONADICALENDARTEST_EXPORT_H
#define AKONADICALENDARTEST_EXPORT_H
#include "akonadi-calendar_export.h"
/* Classes which are exported only for unit tests */
#ifdef BUILD_TESTING
# ifndef AKONADI_CALENDAR_TESTS_EXPORT
# define AKONADI_CALENDAR_TESTS_EXPORT AKONADI_CALENDAR_EXPORT
# endif
#else /* not compiling tests */
# define AKONADI_CALENDAR_TESTS_EXPORT
#endif
#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