2015-09-02 22:09:08 +00:00
|
|
|
# create the libraries
|
|
|
|
file(GLOB SUBSURFACE_UI *.ui)
|
|
|
|
qt5_wrap_ui(SUBSURFACE_UI_HDRS ${SUBSURFACE_UI})
|
|
|
|
source_group("Subsurface Interface Files" FILES ${SUBSURFACE_UI})
|
|
|
|
|
2015-09-02 23:52:34 +00:00
|
|
|
if(BTSUPPORT)
|
|
|
|
set(BT_SRC_FILES btdeviceselectiondialog.cpp)
|
|
|
|
endif()
|
|
|
|
|
2016-09-23 00:12:00 +00:00
|
|
|
if (FBSUPPORT)
|
|
|
|
add_definitions(-DFBSUPPORT)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2015-09-03 00:22:29 +00:00
|
|
|
include_directories(.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
2015-09-17 17:04:27 +00:00
|
|
|
add_subdirectory(preferences)
|
2015-11-09 00:28:56 +00:00
|
|
|
if(NOT DISABLE_PLUGINS)
|
|
|
|
add_subdirectory(plugins)
|
|
|
|
endif()
|
2015-09-17 17:04:27 +00:00
|
|
|
|
2015-11-09 20:57:47 +00:00
|
|
|
set (SUBSURFACE_UI
|
|
|
|
about.ui
|
|
|
|
btdeviceselectiondialog.ui
|
|
|
|
configuredivecomputerdialog.ui
|
|
|
|
divecomponentselection.ui
|
|
|
|
divecomputermanagementdialog.ui
|
|
|
|
divelogexportdialog.ui
|
|
|
|
divelogimportdialog.ui
|
|
|
|
diveplanner.ui
|
|
|
|
diveshareexportdialog.ui
|
|
|
|
downloadfromdivecomputer.ui
|
2018-10-13 09:52:08 +00:00
|
|
|
filterwidget2.ui
|
2018-06-10 14:40:23 +00:00
|
|
|
findmovedimagesdialog.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
listfilter.ui
|
|
|
|
locationInformation.ui
|
|
|
|
mainwindow.ui
|
|
|
|
plannerDetails.ui
|
|
|
|
plannerSettings.ui
|
|
|
|
printoptions.ui
|
|
|
|
renumber.ui
|
|
|
|
searchbar.ui
|
|
|
|
setpoint.ui
|
|
|
|
shiftimagetimes.ui
|
|
|
|
shifttimes.ui
|
|
|
|
tableview.ui
|
|
|
|
templateedit.ui
|
|
|
|
urldialog.ui
|
|
|
|
usersurvey.ui
|
|
|
|
webservices.ui
|
2017-04-04 17:21:30 +00:00
|
|
|
tab-widgets/maintab.ui
|
|
|
|
tab-widgets/TabDiveStatistics.ui
|
|
|
|
tab-widgets/TabDiveInformation.ui
|
|
|
|
tab-widgets/TabDivePhotos.ui
|
|
|
|
tab-widgets/TabDiveExtraInfo.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
)
|
|
|
|
|
2015-09-02 22:09:08 +00:00
|
|
|
# the interface, in C++
|
|
|
|
set(SUBSURFACE_INTERFACE
|
|
|
|
updatemanager.cpp
|
|
|
|
about.cpp
|
|
|
|
divecomputermanagementdialog.cpp
|
|
|
|
divelistview.cpp
|
|
|
|
diveplanner.cpp
|
|
|
|
diveshareexportdialog.cpp
|
|
|
|
downloadfromdivecomputer.cpp
|
2018-06-10 14:40:23 +00:00
|
|
|
findmovedimagesdialog.cpp
|
2015-09-02 22:09:08 +00:00
|
|
|
kmessagewidget.cpp
|
|
|
|
mainwindow.cpp
|
2017-07-14 21:57:40 +00:00
|
|
|
mapwidget.cpp
|
2017-11-04 19:23:37 +00:00
|
|
|
../map-widget/qmlmapwidgethelper.cpp
|
2015-09-02 22:09:08 +00:00
|
|
|
modeldelegates.cpp
|
|
|
|
notificationwidget.cpp
|
|
|
|
simplewidgets.cpp
|
|
|
|
starwidget.cpp
|
|
|
|
subsurfacewebservices.cpp
|
|
|
|
tableview.cpp
|
|
|
|
divelogimportdialog.cpp
|
|
|
|
tagwidget.cpp
|
|
|
|
groupedlineedit.cpp
|
|
|
|
divelogexportdialog.cpp
|
|
|
|
divepicturewidget.cpp
|
|
|
|
usersurvey.cpp
|
|
|
|
configuredivecomputerdialog.cpp
|
2018-07-23 21:41:23 +00:00
|
|
|
command.cpp
|
|
|
|
command_base.cpp
|
|
|
|
command_divelist.cpp
|
2015-09-02 22:09:08 +00:00
|
|
|
locationinformation.cpp
|
|
|
|
qtwaitingspinner.cpp
|
2018-10-13 09:52:08 +00:00
|
|
|
filterwidget2.cpp
|
2017-04-04 17:21:30 +00:00
|
|
|
tab-widgets/TabDiveStatistics.cpp
|
|
|
|
tab-widgets/TabDiveInformation.cpp
|
|
|
|
tab-widgets/TabDivePhotos.cpp
|
|
|
|
tab-widgets/TabDiveExtraInfo.cpp
|
|
|
|
tab-widgets/maintab.cpp
|
|
|
|
tab-widgets/TabBase.cpp
|
2015-09-02 22:09:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT NO_USERMANUAL)
|
|
|
|
set(SUBSURFACE_INTERFACE ${SUBSURFACE_INTERFACE}
|
|
|
|
usermanual.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT NO_PRINTING)
|
|
|
|
set(SUBSURFACE_INTERFACE ${SUBSURFACE_INTERFACE}
|
|
|
|
templateedit.cpp
|
|
|
|
printdialog.cpp
|
|
|
|
printoptions.cpp
|
|
|
|
printer.cpp
|
|
|
|
templatelayout.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (BTSUPPORT)
|
|
|
|
set(SUBSURFACE_INTERFACE ${SUBSURFACE_INTERFACE}
|
|
|
|
btdeviceselectiondialog.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
source_group("Subsurface Interface" FILES ${SUBSURFACE_INTERFACE})
|
|
|
|
|
|
|
|
# the yearly statistics widget.
|
|
|
|
set(SUBSURFACE_STATISTICS_LIB_SRCS
|
|
|
|
statistics/statisticswidget.cpp
|
|
|
|
statistics/yearstatistics.cpp
|
|
|
|
statistics/statisticsbar.cpp
|
|
|
|
statistics/monthstatistics.cpp
|
|
|
|
)
|
|
|
|
source_group("Subsurface Statistics" FILES ${SUBSURFACE_STATISTICS_LIB_SRCS})
|
|
|
|
|
2015-11-09 20:57:47 +00:00
|
|
|
qt5_wrap_ui(SUBSURFACE_UI_SRCS ${SUBSURFACE_UI})
|
|
|
|
|
2015-09-02 22:09:08 +00:00
|
|
|
add_library(subsurface_statistics STATIC ${SUBSURFACE_STATISTICS_LIB_SRCS})
|
|
|
|
target_link_libraries(subsurface_statistics ${QT_LIBRARIES})
|
|
|
|
add_library(subsurface_generated_ui STATIC ${SUBSURFACE_UI_HDRS})
|
|
|
|
target_link_libraries(subsurface_generated_ui ${QT_LIBRARIES})
|
2015-11-09 20:57:47 +00:00
|
|
|
add_library(subsurface_interface STATIC ${SUBSURFACE_INTERFACE} ${SUBSURFACE_UI_SRCS})
|
2017-09-16 08:38:21 +00:00
|
|
|
target_link_libraries(subsurface_interface ${QT_LIBRARIES} ${GRANTLEE_LIBRARIES} subsurface_desktop_preferences)
|