4
1
mirror of https://github.com/QuasarApp/Snake.git synced 2025-05-12 17:39:47 +00:00

fix windows build

This commit is contained in:
Andrei Yankovich 2021-07-03 21:26:17 +03:00
parent 7931ed1183
commit 6b52cefe5e
3 changed files with 15 additions and 3 deletions

@ -8,7 +8,7 @@
cmake_minimum_required(VERSION 3.14)
set(CURRENT_PROJECT "TestLvl")
add_definitions(-DCRAWL_LIBRARY)
add_definitions(-DCRAWL_TEST_LEVEL_LIBRARY)
file(GLOB SOURCE_CPP
"*.cpp"

@ -0,0 +1,12 @@
#ifndef Crawl_TEST_LEVEL_GLOBAL_H
#define Crawl_TEST_LEVEL_GLOBAL_H
#include <QtCore/qglobal.h>
#if defined(CRAWL_TEST_LEVEL_LIBRARY)
# define CRAWL_TEST_LEVEL_EXPORT Q_DECL_EXPORT
#else
# define CRAWL_TEST_LEVEL_EXPORT Q_DECL_IMPORT
#endif
#endif // Crawl_TEST_LEVEL_GLOBAL_H

@ -10,14 +10,14 @@
#define TESTLVL_H
#include <Crawl/ilevel.h>
#include <QObject>
#include "testlevel_global.h"
inline void initTestLvlResources() { Q_INIT_RESOURCE(Empty);
Q_INIT_RESOURCE(testLvl);}
/**
* @brief The TestLvl class This is test lvlv wraper of the crawl
*/
class TestLvl: public ILevel
class CRAWL_TEST_LEVEL_EXPORT TestLvl: public ILevel
{
public:
TestLvl();