2015-09-02 22:09:08 +00:00
|
|
|
# create the libraries
|
|
|
|
file(GLOB SUBSURFACE_UI *.ui)
|
2022-02-09 23:02:30 +00:00
|
|
|
if(NOT USINGQT6)
|
|
|
|
qt5_wrap_ui(SUBSURFACE_UI_HDRS ${SUBSURFACE_UI})
|
|
|
|
else()
|
|
|
|
qt_wrap_ui(SUBSURFACE_UI_HDRS ${SUBSURFACE_UI})
|
|
|
|
endif()
|
2015-09-02 22:09:08 +00:00
|
|
|
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()
|
|
|
|
|
2015-09-03 00:22:29 +00:00
|
|
|
include_directories(.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
2024-01-19 22:14:57 +00:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
2015-09-17 17:04:27 +00:00
|
|
|
add_subdirectory(preferences)
|
|
|
|
|
2015-11-09 20:57:47 +00:00
|
|
|
set (SUBSURFACE_UI
|
|
|
|
about.ui
|
2020-05-27 21:09:30 +00:00
|
|
|
addfilterpreset.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
btdeviceselectiondialog.ui
|
|
|
|
configuredivecomputerdialog.ui
|
|
|
|
divecomponentselection.ui
|
|
|
|
divelogexportdialog.ui
|
|
|
|
divelogimportdialog.ui
|
2019-05-05 03:51:16 +00:00
|
|
|
divesiteimportdialog.ui
|
2022-09-18 11:49:29 +00:00
|
|
|
divesitelistview.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
diveplanner.ui
|
|
|
|
diveshareexportdialog.ui
|
|
|
|
downloadfromdivecomputer.ui
|
2020-09-26 09:40:54 +00:00
|
|
|
filterwidget.ui
|
2018-06-10 14:40:23 +00:00
|
|
|
findmovedimagesdialog.ui
|
2020-01-19 20:06:50 +00:00
|
|
|
importgps.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
listfilter.ui
|
2019-02-01 19:40:57 +00:00
|
|
|
locationinformation.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
mainwindow.ui
|
|
|
|
plannerDetails.ui
|
|
|
|
plannerSettings.ui
|
|
|
|
printoptions.ui
|
2021-04-12 21:34:28 +00:00
|
|
|
profilewidget.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
renumber.ui
|
|
|
|
searchbar.ui
|
|
|
|
setpoint.ui
|
|
|
|
shiftimagetimes.ui
|
|
|
|
shifttimes.ui
|
2020-10-28 11:23:41 +00:00
|
|
|
statswidget.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
tableview.ui
|
|
|
|
templateedit.ui
|
2020-09-29 21:19:11 +00:00
|
|
|
tripselectiodialog.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
urldialog.ui
|
|
|
|
webservices.ui
|
2022-03-05 16:25:49 +00:00
|
|
|
tab-widgets/TabDiveNotes.ui
|
2017-04-04 17:21:30 +00:00
|
|
|
tab-widgets/TabDiveStatistics.ui
|
|
|
|
tab-widgets/TabDiveInformation.ui
|
|
|
|
tab-widgets/TabDivePhotos.ui
|
|
|
|
tab-widgets/TabDiveExtraInfo.ui
|
2019-04-13 15:43:45 +00:00
|
|
|
tab-widgets/TabDiveEquipment.ui
|
2015-11-09 20:57:47 +00:00
|
|
|
)
|
|
|
|
|
2015-09-02 22:09:08 +00:00
|
|
|
# the interface, in C++
|
|
|
|
set(SUBSURFACE_INTERFACE
|
|
|
|
about.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
about.h
|
|
|
|
configuredivecomputerdialog.cpp
|
|
|
|
configuredivecomputerdialog.h
|
2024-08-13 05:04:52 +00:00
|
|
|
divecomponentselection.cpp
|
|
|
|
divecomponentselection.h
|
2015-09-02 22:09:08 +00:00
|
|
|
divelistview.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
divelistview.h
|
|
|
|
divelogexportdialog.cpp
|
|
|
|
divelogexportdialog.h
|
|
|
|
divelogimportdialog.cpp
|
|
|
|
divelogimportdialog.h
|
|
|
|
divepicturewidget.cpp
|
|
|
|
divepicturewidget.h
|
2015-09-02 22:09:08 +00:00
|
|
|
diveplanner.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
diveplanner.h
|
2015-09-02 22:09:08 +00:00
|
|
|
diveshareexportdialog.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
diveshareexportdialog.h
|
2019-05-05 03:51:16 +00:00
|
|
|
divesiteimportdialog.cpp
|
|
|
|
divesiteimportdialog.h
|
2022-09-18 11:49:29 +00:00
|
|
|
divesitelistview.cpp
|
|
|
|
divesitelistview.h
|
2015-09-02 22:09:08 +00:00
|
|
|
downloadfromdivecomputer.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
downloadfromdivecomputer.h
|
2020-05-17 10:07:04 +00:00
|
|
|
filterconstraintwidget.cpp
|
|
|
|
filterconstraintwidget.h
|
2020-09-26 09:40:54 +00:00
|
|
|
filterwidget.cpp
|
|
|
|
filterwidget.h
|
2018-06-10 14:40:23 +00:00
|
|
|
findmovedimagesdialog.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
findmovedimagesdialog.h
|
|
|
|
groupedlineedit.cpp
|
|
|
|
groupedlineedit.h
|
2020-01-19 20:06:50 +00:00
|
|
|
importgps.cpp
|
|
|
|
importgps.h
|
2015-09-02 22:09:08 +00:00
|
|
|
kmessagewidget.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
kmessagewidget.h
|
|
|
|
locationinformation.cpp
|
|
|
|
locationinformation.h
|
2015-09-02 22:09:08 +00:00
|
|
|
mainwindow.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
mainwindow.h
|
2015-09-02 22:09:08 +00:00
|
|
|
modeldelegates.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
modeldelegates.h
|
2015-09-02 22:09:08 +00:00
|
|
|
notificationwidget.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
notificationwidget.h
|
2021-04-12 21:34:28 +00:00
|
|
|
profilewidget.cpp
|
|
|
|
profilewidget.h
|
2019-03-25 21:47:44 +00:00
|
|
|
qtwaitingspinner.cpp
|
|
|
|
qtwaitingspinner.h
|
2015-09-02 22:09:08 +00:00
|
|
|
simplewidgets.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
simplewidgets.h
|
2015-09-02 22:09:08 +00:00
|
|
|
starwidget.cpp
|
2020-10-28 11:23:41 +00:00
|
|
|
statswidget.h
|
|
|
|
statswidget.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
starwidget.h
|
2015-09-02 22:09:08 +00:00
|
|
|
subsurfacewebservices.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
subsurfacewebservices.h
|
|
|
|
tab-widgets/TabBase.cpp
|
|
|
|
tab-widgets/TabBase.h
|
2022-03-05 16:25:49 +00:00
|
|
|
tab-widgets/TabDiveNotes.cpp
|
|
|
|
tab-widgets/TabDiveNotes.h
|
2019-03-25 21:47:44 +00:00
|
|
|
tab-widgets/TabDiveExtraInfo.cpp
|
|
|
|
tab-widgets/TabDiveExtraInfo.h
|
2019-04-13 15:43:45 +00:00
|
|
|
tab-widgets/TabDiveEquipment.cpp
|
|
|
|
tab-widgets/TabDiveEquipment.h
|
2017-04-04 17:21:30 +00:00
|
|
|
tab-widgets/TabDiveInformation.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
tab-widgets/TabDiveInformation.h
|
2017-04-04 17:21:30 +00:00
|
|
|
tab-widgets/TabDivePhotos.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
tab-widgets/TabDivePhotos.h
|
|
|
|
tab-widgets/TabDiveStatistics.cpp
|
|
|
|
tab-widgets/TabDiveStatistics.h
|
2017-04-04 17:21:30 +00:00
|
|
|
tab-widgets/maintab.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
tab-widgets/maintab.h
|
|
|
|
tableview.cpp
|
|
|
|
tableview.h
|
|
|
|
tagwidget.cpp
|
|
|
|
tagwidget.h
|
2018-12-28 13:14:31 +00:00
|
|
|
textedit.cpp
|
|
|
|
textedit.h
|
2020-09-29 21:19:11 +00:00
|
|
|
tripselectiondialog.cpp
|
|
|
|
tripselectiondialog.h
|
2019-03-25 21:47:44 +00:00
|
|
|
updatemanager.cpp
|
|
|
|
updatemanager.h
|
2015-09-02 22:09:08 +00:00
|
|
|
)
|
2022-04-09 00:24:15 +00:00
|
|
|
if(MAPSUPPORT)
|
2022-02-09 23:02:30 +00:00
|
|
|
LIST(APPEND SUBSURFACE_INTERFACE
|
|
|
|
mapwidget.cpp
|
|
|
|
mapwidget.h
|
|
|
|
)
|
|
|
|
endif()
|
2015-09-02 22:09:08 +00:00
|
|
|
|
|
|
|
if(NOT NO_USERMANUAL)
|
|
|
|
set(SUBSURFACE_INTERFACE ${SUBSURFACE_INTERFACE}
|
|
|
|
usermanual.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
usermanual.h
|
2015-09-02 22:09:08 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT NO_PRINTING)
|
|
|
|
set(SUBSURFACE_INTERFACE ${SUBSURFACE_INTERFACE}
|
|
|
|
printdialog.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
printdialog.h
|
2015-09-02 22:09:08 +00:00
|
|
|
printer.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
printer.h
|
|
|
|
printoptions.cpp
|
|
|
|
printoptions.h
|
|
|
|
templateedit.cpp
|
|
|
|
templateedit.h
|
2015-09-02 22:09:08 +00:00
|
|
|
templatelayout.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
templatelayout.h
|
2015-09-02 22:09:08 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (BTSUPPORT)
|
|
|
|
set(SUBSURFACE_INTERFACE ${SUBSURFACE_INTERFACE}
|
|
|
|
btdeviceselectiondialog.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
btdeviceselectiondialog.h
|
2015-09-02 22:09:08 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
source_group("Subsurface Interface" FILES ${SUBSURFACE_INTERFACE})
|
|
|
|
|
2022-02-09 23:02:30 +00:00
|
|
|
if(NOT USINGQT6)
|
|
|
|
qt5_wrap_ui(SUBSURFACE_UI_SRCS ${SUBSURFACE_UI})
|
|
|
|
else()
|
|
|
|
qt_wrap_ui(SUBSURFACE_UI_SRCS ${SUBSURFACE_UI})
|
|
|
|
endif()
|
2015-11-09 20:57:47 +00:00
|
|
|
|
2015-09-02 22:09:08 +00:00
|
|
|
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})
|
2020-10-07 19:37:22 +00:00
|
|
|
target_link_libraries(subsurface_interface ${QT_LIBRARIES} subsurface_desktop_preferences)
|