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:
Tomaz Canabrava 2015-09-03 15:25:01 -03:00 committed by Dirk Hohndel
parent 45c9764073
commit 50ec7200e6
2 changed files with 32 additions and 29 deletions

28
qt-models/CMakeLists.txt Normal file
View 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})