Fix compilation with the new folder architecture

A few more fixes for things that broke in commit 7be962bfc2 ("Move
subsurface-core to core and qt-mobile to mobile-widgets").

[Dirk Hohndel: slightly edited and overlap with Linus' patch removed]

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-04-05 14:22:00 -03:00 committed by Dirk Hohndel
parent 6d6ba8b54a
commit 21e8b1e363
10 changed files with 33 additions and 25 deletions

View file

@ -21,8 +21,10 @@
#include "mainwindow.h" #include "mainwindow.h"
#include "profile-widget/profilewidget2.h" #include "profile-widget/profilewidget2.h"
#include "pref.h"
#include "helpers.h" #include "core/pref.h"
#include "core/helpers.h"
#include "ui_socialnetworksdialog.h" #include "ui_socialnetworksdialog.h"
#include "ui_facebookconnectwidget.h" #include "ui_facebookconnectwidget.h"

View file

@ -1,7 +1,11 @@
# QTest based tests # QTest based tests
qt5_add_resources(SUBSURFACE_TEST_RESOURCES ../subsurface.qrc)
add_library(RESOURCE_LIBRARY STATIC ${SUBSURFACE_TEST_RESOURCES})
macro(TEST NAME FILE) macro(TEST NAME FILE)
add_executable(${NAME} ${FILE} ${SUBSURFACE_RESOURCES} ) add_executable(${NAME} ${FILE} )
target_link_libraries(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} ) target_link_libraries(${NAME} subsurface_corelib RESOURCE_LIBRARY ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} )
add_test(NAME ${NAME} COMMAND $<TARGET_FILE:${NAME}>) add_test(NAME ${NAME} COMMAND $<TARGET_FILE:${NAME}>)
endmacro() endmacro()

View file

@ -1,6 +1,6 @@
#include "testdivesiteduplication.h" #include "testdivesiteduplication.h"
#include "dive.h" #include "core/dive.h"
#include "divesite.h" #include "core/divesite.h"
void TestDiveSiteDuplication::testReadV2() void TestDiveSiteDuplication::testReadV2()
{ {

View file

@ -1,10 +1,12 @@
#include "testgitstorage.h" #include "testgitstorage.h"
#include "dive.h"
#include "divelist.h"
#include "file.h"
#include "git2.h" #include "git2.h"
#include "prefs-macros.h"
#include "subsurfacestartup.h" #include "core/dive.h"
#include "core/divelist.h"
#include "core/file.h"
#include "core/prefs-macros.h"
#include "core/subsurfacestartup.h"
#include <QDir> #include <QDir>
#include <QTextStream> #include <QTextStream>
#include <QNetworkProxy> #include <QNetworkProxy>

View file

@ -1,4 +1,4 @@
#include <dive.h> #include "core/dive.h"
#include "testgpscoords.h" #include "testgpscoords.h"
//unit under test //unit under test

View file

@ -1,7 +1,7 @@
#include "testparse.h" #include "testparse.h"
#include "dive.h" #include "core/dive.h"
#include "file.h" #include "core/file.h"
#include "divelist.h" #include "core/divelist.h"
#include <QTextStream> #include <QTextStream>
char *intdup(int index) char *intdup(int index)

View file

@ -1,9 +1,9 @@
#include "dive.h" #include "core/dive.h"
#include "testplan.h" #include "testplan.h"
#include "planner.h" #include "core/planner.h"
#include "units.h" #include "core/units.h"
#include "subsurfacestartup.h" #include "core/subsurfacestartup.h"
#include "qthelper.h" #include "core/qthelper.h"
#include <QDebug> #include <QDebug>
#define DEBUG 1 #define DEBUG 1

View file

@ -1,5 +1,5 @@
#include "testprofile.h" #include "testprofile.h"
#include "dive.h" #include "core/dive.h"
void TestProfile::testRedCeiling() void TestProfile::testRedCeiling()
{ {

View file

@ -1,7 +1,7 @@
#include "testrenumber.h" #include "testrenumber.h"
#include "dive.h" #include "core/dive.h"
#include "file.h" #include "core/file.h"
#include "divelist.h" #include "core/divelist.h"
#include <QTextStream> #include <QTextStream>
void TestRenumber::setup() void TestRenumber::setup()

View file

@ -1,5 +1,5 @@
#include "testunitconversion.h" #include "testunitconversion.h"
#include "dive.h" #include "core/dive.h"
void TestUnitConversion::testUnitConversions() void TestUnitConversion::testUnitConversions()
{ {