| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | set(PLATFORM_SRC unknown_platform.c) | 
					
						
							| 
									
										
										
										
											2015-11-05 07:57:47 -08:00
										 |  |  | message(STATUS "system name ${CMAKE_SYSTEM_NAME}") | 
					
						
							| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | if(CMAKE_SYSTEM_NAME STREQUAL "Linux") | 
					
						
							| 
									
										
										
										
											2015-11-05 07:57:47 -08:00
										 |  |  | 	if(ANDROID) | 
					
						
							|  |  |  | 		set(PLATFORM_SRC android.cpp) | 
					
						
							|  |  |  | 	else() | 
					
						
							|  |  |  | 		set(PLATFORM_SRC linux.c) | 
					
						
							|  |  |  | 	endif() | 
					
						
							| 
									
										
										
										
											2015-11-07 01:51:31 +01:00
										 |  |  | elseif(CMAKE_SYSTEM_NAME STREQUAL "Android") | 
					
						
							|  |  |  | 	set(PLATFORM_SRC android.cpp) | 
					
						
							| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") | 
					
						
							|  |  |  | 	set(PLATFORM_SRC macos.c) | 
					
						
							|  |  |  | elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows") | 
					
						
							|  |  |  | 	set(PLATFORM_SRC windows.c) | 
					
						
							|  |  |  | endif() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if(FTDISUPPORT) | 
					
						
							|  |  |  | 	set(SERIAL_FTDI serial_ftdi.c) | 
					
						
							|  |  |  | endif() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if(BTSUPPORT) | 
					
						
							|  |  |  | 	add_definitions(-DBT_SUPPORT) | 
					
						
							| 
									
										
										
										
											2015-11-16 11:49:58 +02:00
										 |  |  | 	set(BT_SRC_FILES desktop-widgets/btdeviceselectiondialog.cpp) | 
					
						
							| 
									
										
										
										
											2017-10-06 07:52:17 -07:00
										 |  |  | 	set(BT_CORE_SRC_FILES qtserialbluetooth.cpp btdiscovery.cpp) | 
					
						
							| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | endif() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-12 19:47:50 -07:00
										 |  |  | if(BLESUPPORT) | 
					
						
							|  |  |  | 	add_definitions(-DBLE_SUPPORT) | 
					
						
							| 
									
										
										
										
											2017-10-06 07:52:17 -07:00
										 |  |  | 	set(BT_CORE_SRC_FILES ${BT_CORE_SRC_FILES} qt-ble.cpp) | 
					
						
							| 
									
										
										
										
											2017-06-12 19:47:50 -07:00
										 |  |  | endif() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | # compile the core library, in C. | 
					
						
							|  |  |  | set(SUBSURFACE_CORE_LIB_SRCS | 
					
						
							|  |  |  | 	cochran.c | 
					
						
							|  |  |  | 	datatrak.c | 
					
						
							|  |  |  | 	deco.c | 
					
						
							|  |  |  | 	device.c | 
					
						
							|  |  |  | 	dive.c | 
					
						
							|  |  |  | 	divesite.c | 
					
						
							|  |  |  | 	divesite.cpp | 
					
						
							|  |  |  | 	divelist.c | 
					
						
							|  |  |  | 	equipment.c | 
					
						
							| 
									
										
										
										
											2017-10-26 14:33:02 +02:00
										 |  |  | 	errorhelper.c | 
					
						
							| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | 	file.c | 
					
						
							| 
									
										
										
										
											2016-03-02 13:49:59 -08:00
										 |  |  | 	gas-model.c | 
					
						
							| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | 	git-access.c | 
					
						
							|  |  |  | 	libdivecomputer.c | 
					
						
							|  |  |  | 	liquivision.c | 
					
						
							|  |  |  | 	load-git.c | 
					
						
							|  |  |  | 	membuffer.c | 
					
						
							|  |  |  | 	ostctools.c | 
					
						
							|  |  |  | 	parse-xml.c | 
					
						
							|  |  |  | 	planner.c | 
					
						
							| 
									
										
										
										
											2017-05-25 12:57:06 +02:00
										 |  |  | 	plannernotes.c | 
					
						
							| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | 	profile.c | 
					
						
							|  |  |  | 	gaspressures.c | 
					
						
							|  |  |  | 	worldmap-save.c | 
					
						
							|  |  |  | 	save-git.c | 
					
						
							|  |  |  | 	save-xml.c | 
					
						
							|  |  |  | 	save-html.c | 
					
						
							|  |  |  | 	sha1.c | 
					
						
							|  |  |  | 	statistics.c | 
					
						
							|  |  |  | 	strtod.c | 
					
						
							|  |  |  | 	subsurfacestartup.c | 
					
						
							|  |  |  | 	time.c | 
					
						
							|  |  |  | 	uemis.c | 
					
						
							|  |  |  | 	uemis-downloader.c | 
					
						
							|  |  |  | 	version.c | 
					
						
							|  |  |  | 	# gettextfrommoc should be added because we are using it on the c-code. | 
					
						
							|  |  |  | 	gettextfromc.cpp | 
					
						
							|  |  |  | 	# dirk ported some core functionality to c++. | 
					
						
							|  |  |  | 	qthelper.cpp | 
					
						
							|  |  |  | 	divecomputer.cpp | 
					
						
							|  |  |  | 	exif.cpp | 
					
						
							|  |  |  | 	subsurfacesysinfo.cpp | 
					
						
							|  |  |  | 	devicedetails.cpp | 
					
						
							|  |  |  | 	configuredivecomputer.cpp | 
					
						
							|  |  |  | 	configuredivecomputerthreads.cpp | 
					
						
							|  |  |  | 	divesitehelpers.cpp | 
					
						
							|  |  |  | 	taxonomy.c | 
					
						
							|  |  |  | 	checkcloudconnection.cpp | 
					
						
							|  |  |  | 	windowtitleupdate.cpp | 
					
						
							|  |  |  | 	divelogexportlogic.cpp | 
					
						
							|  |  |  | 	qt-init.cpp | 
					
						
							|  |  |  | 	qtserialbluetooth.cpp | 
					
						
							| 
									
										
										
										
											2015-09-03 14:20:19 -03:00
										 |  |  | 	metrics.cpp | 
					
						
							|  |  |  | 	color.cpp | 
					
						
							| 
									
										
										
										
											2015-10-09 19:18:45 -03:00
										 |  |  | 	pluginmanager.cpp | 
					
						
							| 
									
										
										
										
											2015-11-06 10:39:59 -08:00
										 |  |  | 	imagedownloader.cpp | 
					
						
							| 
									
										
										
										
											2015-11-09 18:14:20 -02:00
										 |  |  | 	isocialnetworkintegration.cpp | 
					
						
							| 
									
										
										
										
											2015-11-18 18:30:55 -08:00
										 |  |  | 	gpslocation.cpp | 
					
						
							| 
									
										
										
										
											2016-01-26 12:24:27 -02:00
										 |  |  | 	cloudstorage.cpp | 
					
						
							| 
									
										
										
										
											2017-04-18 19:14:03 +02:00
										 |  |  | 	downloadfromdcthread.cpp | 
					
						
							| 
									
										
										
										
											2017-10-06 07:51:30 -07:00
										 |  |  | 	connectionlistmodel.cpp | 
					
						
							| 
									
										
										
										
											2016-01-07 16:01:24 -02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	#Subsurface Qt have the Subsurface structs QObjectified for easy access via QML. | 
					
						
							|  |  |  | 	subsurface-qt/DiveObjectHelper.cpp | 
					
						
							| 
									
										
										
										
											2016-07-31 22:27:07 +01:00
										 |  |  | 	subsurface-qt/CylinderObjectHelper.cpp | 
					
						
							| 
									
										
										
										
											2016-01-22 18:37:18 -02:00
										 |  |  | 	subsurface-qt/SettingsObjectWrapper.cpp | 
					
						
							| 
									
										
										
										
											2017-04-18 19:14:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-02 20:52:34 -03:00
										 |  |  | 	${SERIAL_FTDI} | 
					
						
							|  |  |  | 	${PLATFORM_SRC} | 
					
						
							|  |  |  | 	${BT_CORE_SRC_FILES} | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | source_group("Subsurface Core" FILES ${SUBSURFACE_CORE_LIB_SRCS}) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | add_library(subsurface_corelib STATIC ${SUBSURFACE_CORE_LIB_SRCS} ) | 
					
						
							|  |  |  | target_link_libraries(subsurface_corelib ${QT_LIBRARIES}) | 
					
						
							|  |  |  | 
 |