subsurface/stats/CMakeLists.txt
Berthold Stoeger 319a7af31a statistics: add a model that describes a list of charts
Qt's comboboxes are controlled by models, there's no way around
that. To customize the chart-selection widget this must therefore
be abstracted into a model. On the upside, this hopefully can
be used for desktop and mobile.

The model provides icons and paints a warning-symbol on it
if the statistics core code deems the chart to be not recommended.
Notably, when plotting a categorical bar chart against a
numerical value (in such a case histograms are preferred).

Includes a fix for a silly oversight in CMakelist.txt: add the
statstranslations.h header.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-01-03 13:41:15 -08:00

41 lines
766 B
CMake

# the stats-graph widget
include_directories(.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
)
set(SUBSURFACE_STATS_SRCS
barseries.h
barseries.cpp
boxseries.h
boxseries.cpp
chartlistmodel.h
chartlistmodel.cpp
informationbox.h
informationbox.cpp
legend.h
legend.cpp
pieseries.h
pieseries.cpp
scatterseries.h
scatterseries.cpp
statsaxis.h
statsaxis.cpp
statscolors.h
statscolors.cpp
statsseries.h
statsseries.cpp
statsstate.h
statsstate.cpp
statstranslations.h
statsvariables.h
statsvariables.cpp
statsview.h
statsview.cpp
zvalues.h
)
source_group("Subsurface statistics sourcecode" FILES ${SUBSURFACE_STATS_SRCS})
add_library(subsurface_stats STATIC ${SUBSURFACE_STATS_SRCS})
target_link_libraries(subsurface_stats ${QT_LIBRARIES})