mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Single CMake to handle the models
This one was pretty easy because of the work I did a few months ago to separate the models from the UI. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
45c9764073
commit
50ec7200e6
2 changed files with 32 additions and 29 deletions
|
@ -312,38 +312,16 @@ endif()
|
||||||
# include translations
|
# include translations
|
||||||
add_subdirectory(translations)
|
add_subdirectory(translations)
|
||||||
add_subdirectory(subsurface-core)
|
add_subdirectory(subsurface-core)
|
||||||
|
add_subdirectory(qt-models)
|
||||||
|
|
||||||
if(FBSUPPORT)
|
if(FBSUPPORT)
|
||||||
add_definitions(-DFBSUPPORT)
|
add_definitions(-DFBSUPPORT)
|
||||||
set(SOCIALNETWORKS qt-ui/socialnetworks.cpp)
|
set(SOCIALNETWORKS qt-ui/socialnetworks.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# the data models that will interface
|
if(BTSUPPORT)
|
||||||
# with the views.
|
add_definitions(-DBT_SUPPORT)
|
||||||
set(SUBSURFACE_MODELS_LIB_SRCS
|
endif()
|
||||||
qt-models/cleanertablemodel.cpp
|
|
||||||
qt-models/cylindermodel.cpp
|
|
||||||
qt-models/diveplannermodel.cpp
|
|
||||||
qt-models/models.cpp
|
|
||||||
qt-models/filtermodels.cpp
|
|
||||||
qt-models/tankinfomodel.cpp
|
|
||||||
qt-models/weigthsysteminfomodel.cpp
|
|
||||||
qt-models/weightmodel.cpp
|
|
||||||
qt-models/divecomputermodel.cpp
|
|
||||||
qt-models/treemodel.cpp
|
|
||||||
qt-models/tableprintmodel.cpp
|
|
||||||
qt-models/yearlystatisticsmodel.cpp
|
|
||||||
qt-models/divetripmodel.cpp
|
|
||||||
qt-models/divecomputerextradatamodel.cpp
|
|
||||||
qt-models/completionmodels.cpp
|
|
||||||
qt-models/profileprintmodel.cpp
|
|
||||||
qt-models/divepicturemodel.cpp
|
|
||||||
qt-models/diveplotdatamodel.cpp
|
|
||||||
qt-models/divelocationmodel.cpp
|
|
||||||
qt-models/divesitepicturesmodel.cpp
|
|
||||||
qt-models/ssrfsortfilterproxymodel.cpp
|
|
||||||
)
|
|
||||||
source_group("Subsurface Models" FILES ${SUBSURFACE_MODELS})
|
|
||||||
|
|
||||||
# the main app.
|
# the main app.
|
||||||
set(SUBSURFACE_APP
|
set(SUBSURFACE_APP
|
||||||
|
@ -353,9 +331,6 @@ set(SUBSURFACE_APP
|
||||||
|
|
||||||
source_group("Subsurface App" FILES ${SUBSURFACE_APP})
|
source_group("Subsurface App" FILES ${SUBSURFACE_APP})
|
||||||
|
|
||||||
add_library(subsurface_models STATIC ${SUBSURFACE_MODELS_LIB_SRCS})
|
|
||||||
target_link_libraries(subsurface_models ${QT_LIBRARIES})
|
|
||||||
|
|
||||||
# add pthread to the end of the library list on Linux
|
# add pthread to the end of the library list on Linux
|
||||||
# this is only needed on Ubuntu (why do these idiots break everything?)
|
# this is only needed on Ubuntu (why do these idiots break everything?)
|
||||||
# but shouldn't hurt on other Linux versions
|
# but shouldn't hurt on other Linux versions
|
||||||
|
|
28
qt-models/CMakeLists.txt
Normal file
28
qt-models/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# the data models that will interface
|
||||||
|
# with the views.
|
||||||
|
set(SUBSURFACE_MODELS_LIB_SRCS
|
||||||
|
cleanertablemodel.cpp
|
||||||
|
cylindermodel.cpp
|
||||||
|
diveplannermodel.cpp
|
||||||
|
models.cpp
|
||||||
|
filtermodels.cpp
|
||||||
|
tankinfomodel.cpp
|
||||||
|
weigthsysteminfomodel.cpp
|
||||||
|
weightmodel.cpp
|
||||||
|
divecomputermodel.cpp
|
||||||
|
treemodel.cpp
|
||||||
|
tableprintmodel.cpp
|
||||||
|
yearlystatisticsmodel.cpp
|
||||||
|
divetripmodel.cpp
|
||||||
|
divecomputerextradatamodel.cpp
|
||||||
|
completionmodels.cpp
|
||||||
|
profileprintmodel.cpp
|
||||||
|
divepicturemodel.cpp
|
||||||
|
diveplotdatamodel.cpp
|
||||||
|
divelocationmodel.cpp
|
||||||
|
divesitepicturesmodel.cpp
|
||||||
|
ssrfsortfilterproxymodel.cpp
|
||||||
|
)
|
||||||
|
source_group("Subsurface Models" FILES ${SUBSURFACE_MODELS})
|
||||||
|
add_library(subsurface_models STATIC ${SUBSURFACE_MODELS_LIB_SRCS})
|
||||||
|
target_link_libraries(subsurface_models ${QT_LIBRARIES})
|
Loading…
Add table
Reference in a new issue