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()
|
2018-07-18 11:04:35 +02:00
|
|
|
set(PLATFORM_SRC unix.c)
|
2015-11-05 07:57:47 -08:00
|
|
|
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)
|
2018-07-18 11:04:35 +02:00
|
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
|
|
|
set(PLATFORM_SRC unix.c)
|
2015-09-02 20:52:34 -03:00
|
|
|
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()
|
|
|
|
|
2018-06-16 09:52:01 +02:00
|
|
|
# compile the core library part in C, part in C++
|
2015-09-02 20:52:34 -03:00
|
|
|
set(SUBSURFACE_CORE_LIB_SRCS
|
2018-06-16 09:52:01 +02:00
|
|
|
checkcloudconnection.cpp
|
|
|
|
cloudstorage.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
cochran.c
|
2018-06-16 09:52:01 +02:00
|
|
|
color.cpp
|
|
|
|
configuredivecomputer.cpp
|
|
|
|
configuredivecomputerthreads.cpp
|
|
|
|
connectionlistmodel.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
datatrak.c
|
|
|
|
deco.c
|
|
|
|
device.c
|
2018-06-16 09:52:01 +02:00
|
|
|
devicedetails.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
dive.c
|
2018-06-16 09:52:01 +02:00
|
|
|
divecomputer.cpp
|
|
|
|
divelogexportlogic.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
divesite.c
|
2018-06-16 09:52:01 +02:00
|
|
|
divesitehelpers.cpp
|
2017-12-08 08:13:08 -06:00
|
|
|
divesite-helper.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
divelist.c
|
2018-06-16 09:52:01 +02:00
|
|
|
downloadfromdcthread.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
equipment.c
|
2017-10-26 14:33:02 +02:00
|
|
|
errorhelper.c
|
2018-06-16 09:52:01 +02:00
|
|
|
exif.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
file.c
|
2018-06-16 09:52:01 +02:00
|
|
|
format.cpp
|
|
|
|
gaspressures.c
|
2016-03-02 13:49:59 -08:00
|
|
|
gas-model.c
|
2018-06-16 09:52:01 +02:00
|
|
|
gettextfromc.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
git-access.c
|
2018-06-16 09:52:01 +02:00
|
|
|
gpslocation.cpp
|
|
|
|
imagedownloader.cpp
|
|
|
|
isocialnetworkintegration.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
libdivecomputer.c
|
|
|
|
liquivision.c
|
|
|
|
load-git.c
|
|
|
|
membuffer.c
|
2018-06-16 09:52:01 +02:00
|
|
|
metadata.cpp
|
2018-09-15 19:11:01 +02:00
|
|
|
xmp_parser.cpp
|
2018-06-16 09:52:01 +02:00
|
|
|
metrics.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
ostctools.c
|
|
|
|
parse-xml.c
|
2017-11-27 19:41:10 +02:00
|
|
|
parse.c
|
2017-11-28 21:24:53 +02:00
|
|
|
import-suunto.c
|
2017-11-28 21:31:27 +02:00
|
|
|
import-shearwater.c
|
2017-11-28 21:34:37 +02:00
|
|
|
import-cobalt.c
|
2017-11-28 21:36:57 +02:00
|
|
|
import-divinglog.c
|
2018-01-06 22:24:38 +02:00
|
|
|
import-csv.c
|
2015-09-02 20:52:34 -03:00
|
|
|
planner.c
|
2017-05-25 12:57:06 +02:00
|
|
|
plannernotes.c
|
2018-06-16 09:52:01 +02:00
|
|
|
pluginmanager.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
profile.c
|
2018-06-16 09:52:01 +02:00
|
|
|
qthelper.cpp
|
|
|
|
qt-init.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
save-git.c
|
|
|
|
save-xml.c
|
|
|
|
save-html.c
|
|
|
|
sha1.c
|
|
|
|
statistics.c
|
|
|
|
strtod.c
|
|
|
|
subsurfacestartup.c
|
2018-06-16 09:52:01 +02:00
|
|
|
subsurfacesysinfo.cpp
|
|
|
|
taxonomy.c
|
2015-09-02 20:52:34 -03:00
|
|
|
time.c
|
|
|
|
uemis.c
|
|
|
|
uemis-downloader.c
|
|
|
|
version.c
|
2018-07-10 15:04:35 +02:00
|
|
|
videoframeextractor.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
windowtitleupdate.cpp
|
2018-06-16 09:52:01 +02:00
|
|
|
worldmap-save.c
|
2016-01-07 16:01:24 -02:00
|
|
|
|
2018-06-16 16:03:31 +02:00
|
|
|
# classes to manage struct preferences for QWidget and QML
|
|
|
|
settings/qPref.cpp
|
2018-07-12 21:01:31 +02:00
|
|
|
settings/qPrefCloudStorage.cpp
|
2018-06-15 10:53:42 +02:00
|
|
|
settings/qPrefDisplay.cpp
|
2018-07-15 18:15:40 +02:00
|
|
|
settings/qPrefDiveComputer.cpp
|
2018-08-01 17:14:04 +02:00
|
|
|
settings/qPrefDivePlanner.cpp
|
2018-07-23 15:10:40 +02:00
|
|
|
settings/qPrefFacebook.cpp
|
2018-08-12 17:57:45 +02:00
|
|
|
settings/qPrefGeneral.cpp
|
2018-08-06 19:25:06 +02:00
|
|
|
settings/qPrefGeocoding.cpp
|
2018-08-06 19:39:35 +02:00
|
|
|
settings/qPrefLanguage.cpp
|
2018-08-05 15:59:28 +02:00
|
|
|
settings/qPrefLocationService.cpp
|
2018-08-10 21:18:40 +02:00
|
|
|
settings/qPrefPartialPressureGas.cpp
|
2018-07-17 15:22:51 +02:00
|
|
|
settings/qPrefPrivate.cpp
|
2018-07-27 10:25:43 +02:00
|
|
|
settings/qPrefProxy.cpp
|
2018-08-04 12:02:29 +02:00
|
|
|
settings/qPrefTechnicalDetails.cpp
|
2018-07-31 15:04:12 +02:00
|
|
|
settings/qPrefUnit.cpp
|
2018-08-03 19:24:53 +02:00
|
|
|
settings/qPrefUpdateManager.cpp
|
2018-06-16 16:03:31 +02:00
|
|
|
|
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
|
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})
|
|
|
|
|