mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
6d6ba8b54a
commit
21e8b1e363
10 changed files with 33 additions and 25 deletions
|
@ -21,8 +21,10 @@
|
|||
|
||||
#include "mainwindow.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_facebookconnectwidget.h"
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
# QTest based tests
|
||||
qt5_add_resources(SUBSURFACE_TEST_RESOURCES ../subsurface.qrc)
|
||||
|
||||
add_library(RESOURCE_LIBRARY STATIC ${SUBSURFACE_TEST_RESOURCES})
|
||||
|
||||
macro(TEST NAME FILE)
|
||||
add_executable(${NAME} ${FILE} ${SUBSURFACE_RESOURCES} )
|
||||
target_link_libraries(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} )
|
||||
add_executable(${NAME} ${FILE} )
|
||||
target_link_libraries(${NAME} subsurface_corelib RESOURCE_LIBRARY ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} )
|
||||
add_test(NAME ${NAME} COMMAND $<TARGET_FILE:${NAME}>)
|
||||
endmacro()
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "testdivesiteduplication.h"
|
||||
#include "dive.h"
|
||||
#include "divesite.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/divesite.h"
|
||||
|
||||
void TestDiveSiteDuplication::testReadV2()
|
||||
{
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#include "testgitstorage.h"
|
||||
#include "dive.h"
|
||||
#include "divelist.h"
|
||||
#include "file.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 <QTextStream>
|
||||
#include <QNetworkProxy>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <dive.h>
|
||||
#include "core/dive.h"
|
||||
#include "testgpscoords.h"
|
||||
|
||||
//unit under test
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "testparse.h"
|
||||
#include "dive.h"
|
||||
#include "file.h"
|
||||
#include "divelist.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/file.h"
|
||||
#include "core/divelist.h"
|
||||
#include <QTextStream>
|
||||
|
||||
char *intdup(int index)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "dive.h"
|
||||
#include "core/dive.h"
|
||||
#include "testplan.h"
|
||||
#include "planner.h"
|
||||
#include "units.h"
|
||||
#include "subsurfacestartup.h"
|
||||
#include "qthelper.h"
|
||||
#include "core/planner.h"
|
||||
#include "core/units.h"
|
||||
#include "core/subsurfacestartup.h"
|
||||
#include "core/qthelper.h"
|
||||
#include <QDebug>
|
||||
|
||||
#define DEBUG 1
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "testprofile.h"
|
||||
#include "dive.h"
|
||||
#include "core/dive.h"
|
||||
|
||||
void TestProfile::testRedCeiling()
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "testrenumber.h"
|
||||
#include "dive.h"
|
||||
#include "file.h"
|
||||
#include "divelist.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/file.h"
|
||||
#include "core/divelist.h"
|
||||
#include <QTextStream>
|
||||
|
||||
void TestRenumber::setup()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "testunitconversion.h"
|
||||
#include "dive.h"
|
||||
#include "core/dive.h"
|
||||
|
||||
void TestUnitConversion::testUnitConversions()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue