aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/CMakeLists.txt
blob: 4e3a5ca0995e8310b593bf5be7cf71f0e81e39e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# the data models that will interface
# with the views.

# models used both mobile and desktop builds
set(SUBSURFACE_GENERIC_MODELS_LIB_SRCS
	divepicturemodel.cpp
	diveplotdatamodel.cpp
	diveimportedmodel.cpp
)

# models exclusively used in desktop builds
set(SUBSURFACE_DESKTOP_MODELS_LIB_SRCS
	cleanertablemodel.cpp
	models.cpp
	tankinfomodel.cpp
	treemodel.cpp
	maplocationmodel.cpp
	cylindermodel.cpp
	yearlystatisticsmodel.cpp
	weigthsysteminfomodel.cpp
	weightmodel.cpp
	filtermodels.cpp
	divecomputermodel.cpp
	divetripmodel.cpp
	diveplannermodel.cpp
	divecomputerextradatamodel.cpp
	completionmodels.cpp
	divelocationmodel.cpp
	ssrfsortfilterproxymodel.cpp
)

# models exclusively used in mobile builds
set(SUBSURFACE_MOBILE_MODELS_LIB_SRCS
	divelistmodel.cpp
	messagehandlermodel.cpp
	gpslistmodel.cpp
)

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()