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

Fix build against windows

parent 4658e889
......@@ -43,6 +43,10 @@ find_package(KF5IdentityManagement ${IDENTITYMANAGER_LIB_VERSION} CONFIG REQUIRE
add_definitions(-DTRANSLATION_DOMAIN=\"libkcalutils5\")
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
if(BUILD_TESTING)
add_definitions(-DBUILD_TESTING)
endif(BUILD_TESTING)
########### Targets ###########
add_subdirectory(src)
......
......@@ -17,15 +17,9 @@ ecm_add_tests(testdndfactory.cpp teststringify.cpp
ecm_add_test(testincidenceformatter.cpp
${CMAKE_SOURCE_DIR}/src/incidenceformatter.cpp
${CMAKE_SOURCE_DIR}/src/grantleetemplatemanager.cpp
${CMAKE_SOURCE_DIR}/src/qtresourcetemplateloader.cpp
${CMAKE_SOURCE_DIR}/src/grantleeki18nlocalizer.cpp
${CMAKE_SOURCE_DIR}/src/stringify.cpp
${CMAKE_BINARY_DIR}/src/kcalutils_debug.cpp
TEST_NAME "testincidenceformatter"
NAME_PREFIX "kcalutils-"
LINK_LIBRARIES Qt5::Core Qt5::Test KF5::CalendarCore KF5::I18n KF5::IdentityManagement Grantlee5::Templates
LINK_LIBRARIES KF5CalendarUtils Qt5::Core Qt5::Test KF5::CalendarCore KF5::I18n KF5::IdentityManagement Grantlee5::Templates
)
......
......@@ -21,6 +21,7 @@
#define GRANTLEETEMPLATEMANAGER_H_P
#include <QSharedPointer>
#include "kcalutils_private_export.h"
namespace Grantlee
{
......@@ -34,7 +35,7 @@ typedef QSharedPointer<TemplateImpl> Template;
class QString;
class GrantleeKi18nLocalizer;
class GrantleeTemplateManager
class KCALUTILS_TESTS_EXPORT GrantleeTemplateManager
{
public:
~GrantleeTemplateManager();
......
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KCALUTILSPRIVATE_EXPORT_H
#define KCALUTILSPRIVATE_EXPORT_H
#include "kcalutils_export.h"
/* Classes which are exported only for unit tests */
#ifdef BUILD_TESTING
# ifndef KCALUTILS_TESTS_EXPORT
# define KCALUTILS_TESTS_EXPORT KCALUTILS_EXPORT
# endif
#else /* not compiling tests */
# define KCALUTILS_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