2015-09-03 18:25:01 +00:00
|
|
|
# the data models that will interface
|
|
|
|
# with the views.
|
2018-01-09 15:30:03 +00:00
|
|
|
|
|
|
|
# models used both mobile and desktop builds
|
|
|
|
set(SUBSURFACE_GENERIC_MODELS_LIB_SRCS
|
|
|
|
diveplotdatamodel.cpp
|
|
|
|
diveimportedmodel.cpp
|
2018-01-28 08:52:51 +00:00
|
|
|
completionmodels.cpp
|
2018-01-28 14:21:28 +00:00
|
|
|
divelocationmodel.cpp
|
2018-01-09 15:30:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# models exclusively used in desktop builds
|
|
|
|
set(SUBSURFACE_DESKTOP_MODELS_LIB_SRCS
|
2018-01-10 12:55:29 +00:00
|
|
|
divepicturemodel.cpp
|
2018-01-09 18:32:41 +00:00
|
|
|
cleanertablemodel.cpp
|
|
|
|
models.cpp
|
|
|
|
tankinfomodel.cpp
|
|
|
|
treemodel.cpp
|
2018-01-09 15:30:03 +00:00
|
|
|
maplocationmodel.cpp
|
2018-01-09 18:32:41 +00:00
|
|
|
cylindermodel.cpp
|
2015-09-03 18:25:01 +00:00
|
|
|
yearlystatisticsmodel.cpp
|
2018-01-09 15:30:03 +00:00
|
|
|
weigthsysteminfomodel.cpp
|
2018-01-09 18:32:41 +00:00
|
|
|
weightmodel.cpp
|
2018-01-09 15:30:03 +00:00
|
|
|
filtermodels.cpp
|
|
|
|
divecomputermodel.cpp
|
2015-09-03 18:25:01 +00:00
|
|
|
divetripmodel.cpp
|
2018-01-09 18:32:41 +00:00
|
|
|
diveplannermodel.cpp
|
2015-09-03 18:25:01 +00:00
|
|
|
divecomputerextradatamodel.cpp
|
|
|
|
ssrfsortfilterproxymodel.cpp
|
2018-01-09 15:30:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# models exclusively used in mobile builds
|
|
|
|
set(SUBSURFACE_MOBILE_MODELS_LIB_SRCS
|
2016-01-08 15:11:49 +00:00
|
|
|
divelistmodel.cpp
|
2017-06-05 16:16:12 +00:00
|
|
|
messagehandlermodel.cpp
|
2018-01-09 15:30:03 +00:00
|
|
|
gpslistmodel.cpp
|
2018-03-08 20:30:03 +00:00
|
|
|
maplocationmodel.cpp
|
2015-09-03 18:25:01 +00:00
|
|
|
)
|
2015-09-03 18:56:37 +00:00
|
|
|
|
2018-01-09 15:30:03 +00:00
|
|
|
if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "DesktopExecutable")
|
|
|
|
add_library(subsurface_models_desktop STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS}
|
|
|
|
${SUBSURFACE_DESKTOP_MODELS_LIB_SRCS})
|
|
|
|
target_link_libraries(subsurface_models_desktop ${QT_LIBRARIES})
|
|
|
|
elseif(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable")
|
|
|
|
add_library(subsurface_models_mobile STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS}
|
|
|
|
${SUBSURFACE_MOBILE_MODELS_LIB_SRCS})
|
|
|
|
target_link_libraries(subsurface_models_mobile ${QT_LIBRARIES})
|
|
|
|
endif()
|