2015-09-03 15:25:01 -03:00
|
|
|
# the data models that will interface
|
|
|
|
# with the views.
|
2018-01-09 16:30:03 +01:00
|
|
|
|
|
|
|
# models used both mobile and desktop builds
|
|
|
|
set(SUBSURFACE_GENERIC_MODELS_LIB_SRCS
|
2019-12-15 08:32:50 +01:00
|
|
|
cleanertablemodel.cpp
|
|
|
|
cleanertablemodel.h
|
2018-01-28 09:52:51 +01:00
|
|
|
completionmodels.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
completionmodels.h
|
2019-12-15 08:32:50 +01:00
|
|
|
cylindermodel.cpp
|
|
|
|
cylindermodel.h
|
2019-03-25 22:47:44 +01:00
|
|
|
diveimportedmodel.cpp
|
|
|
|
diveimportedmodel.h
|
2018-01-28 15:21:28 +01:00
|
|
|
divelocationmodel.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
divelocationmodel.h
|
2019-12-15 08:32:50 +01:00
|
|
|
diveplannermodel.cpp
|
|
|
|
diveplannermodel.h
|
2019-11-11 21:16:48 +01:00
|
|
|
divetripmodel.cpp
|
|
|
|
divetripmodel.h
|
2020-05-15 17:05:34 +02:00
|
|
|
filterconstraintmodel.cpp
|
|
|
|
filterconstraintmodel.h
|
2020-05-27 08:17:06 +02:00
|
|
|
filterpresetmodel.cpp
|
|
|
|
filterpresetmodel.h
|
2019-12-15 08:32:50 +01:00
|
|
|
models.cpp
|
|
|
|
models.h
|
|
|
|
tankinfomodel.cpp
|
|
|
|
tankinfomodel.h
|
2019-12-11 10:37:15 +01:00
|
|
|
weightsysteminfomodel.cpp
|
|
|
|
weightsysteminfomodel.h
|
2018-01-09 16:30:03 +01:00
|
|
|
)
|
|
|
|
|
2022-04-08 14:24:15 -10:00
|
|
|
if(MAPSUPPORT)
|
2022-02-09 15:02:30 -08:00
|
|
|
LIST(APPEND SUBSURFACE_GENERIC_MODELS_LIB_SRCS
|
|
|
|
maplocationmodel.cpp
|
|
|
|
maplocationmodel.h
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2018-01-09 16:30:03 +01:00
|
|
|
# models exclusively used in desktop builds
|
|
|
|
set(SUBSURFACE_DESKTOP_MODELS_LIB_SRCS
|
2019-03-25 22:47:44 +01:00
|
|
|
divecomputerextradatamodel.cpp
|
|
|
|
divecomputerextradatamodel.h
|
|
|
|
divepicturemodel.cpp
|
|
|
|
divepicturemodel.h
|
2019-05-04 20:51:16 -07:00
|
|
|
divesiteimportmodel.cpp
|
|
|
|
divesiteimportmodel.h
|
2019-03-25 22:47:44 +01:00
|
|
|
filtermodels.cpp
|
|
|
|
filtermodels.h
|
2018-01-09 19:32:41 +01:00
|
|
|
treemodel.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
treemodel.h
|
2018-01-09 19:32:41 +01:00
|
|
|
weightmodel.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
weightmodel.h
|
|
|
|
yearlystatisticsmodel.cpp
|
|
|
|
yearlystatisticsmodel.h
|
2018-01-09 16:30:03 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
# models exclusively used in mobile builds
|
|
|
|
set(SUBSURFACE_MOBILE_MODELS_LIB_SRCS
|
2020-02-08 12:06:57 +01:00
|
|
|
divesummarymodel.cpp
|
|
|
|
divesummarymodel.h
|
2019-03-25 22:47:44 +01:00
|
|
|
messagehandlermodel.cpp
|
|
|
|
messagehandlermodel.h
|
2019-11-11 21:16:48 +01:00
|
|
|
mobilelistmodel.cpp
|
|
|
|
mobilelistmodel.h
|
2015-09-03 15:25:01 -03:00
|
|
|
)
|
2015-09-03 15:56:37 -03:00
|
|
|
|
2019-03-03 22:19:32 +01:00
|
|
|
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable")
|
2018-01-09 16:30:03 +01:00
|
|
|
add_library(subsurface_models_desktop STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS}
|
|
|
|
${SUBSURFACE_DESKTOP_MODELS_LIB_SRCS})
|
|
|
|
target_link_libraries(subsurface_models_desktop ${QT_LIBRARIES})
|
2019-03-03 22:19:32 +01:00
|
|
|
elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
2018-01-09 16:30:03 +01:00
|
|
|
add_library(subsurface_models_mobile STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS}
|
|
|
|
${SUBSURFACE_MOBILE_MODELS_LIB_SRCS})
|
|
|
|
target_link_libraries(subsurface_models_mobile ${QT_LIBRARIES})
|
2020-11-14 19:21:16 -08:00
|
|
|
elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DownloaderExecutable")
|
|
|
|
add_library(subsurface_models_downloader STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS})
|
|
|
|
target_link_libraries(subsurface_models_downloader ${QT_LIBRARIES})
|
2018-01-09 16:30:03 +01:00
|
|
|
endif()
|