Added CMake for Release version 6.1.3
This commit is contained in:
parent
4c64008fa5
commit
c53c8e821f
28 changed files with 1534 additions and 0 deletions
11
CMakeLists.txt
Normal file
11
CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.1)
|
||||
project(qwt VERSION 6.1.3 LANGUAGES CXX)
|
||||
|
||||
option(WITH_EXAMPLES "Whether to include examples" OFF)
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(textengines)
|
||||
|
||||
if(WITH_EXAMPLES)
|
||||
add_subdirectory(examples)
|
||||
endif()
|
35
examples/CMakeLists.txt
Normal file
35
examples/CMakeLists.txt
Normal file
|
@ -0,0 +1,35 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
find_package(Qt5OpenGL REQUIRED)
|
||||
find_package(Qt5PrintSupport REQUIRED)
|
||||
find_package(Qt5Svg REQUIRED)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Source
|
||||
#----------------------------------------------------------------
|
||||
add_subdirectory(animation)
|
||||
add_subdirectory(barchart)
|
||||
add_subdirectory(bode)
|
||||
add_subdirectory(controls)
|
||||
add_subdirectory(cpuplot)
|
||||
add_subdirectory(curvdemo1)
|
||||
add_subdirectory(dials)
|
||||
add_subdirectory(distrowatch)
|
||||
add_subdirectory(event_filter)
|
||||
add_subdirectory(friedberg)
|
||||
add_subdirectory(itemeditor)
|
||||
add_subdirectory(legends)
|
||||
add_subdirectory(oscilloscope)
|
||||
add_subdirectory(radio)
|
||||
add_subdirectory(rasterview)
|
||||
add_subdirectory(realtime)
|
||||
add_subdirectory(refreshtest)
|
||||
add_subdirectory(scatterplot)
|
||||
add_subdirectory(simpleplot)
|
||||
add_subdirectory(sinusplot)
|
||||
add_subdirectory(spectrogram)
|
||||
add_subdirectory(stockchart)
|
||||
add_subdirectory(sysinfo)
|
||||
add_subdirectory(tvplot)
|
40
examples/animation/CMakeLists.txt
Normal file
40
examples/animation/CMakeLists.txt
Normal file
|
@ -0,0 +1,40 @@
|
|||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(animation_sources
|
||||
main.cpp
|
||||
plot.cpp
|
||||
plot.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_animation ${animation_sources})
|
||||
|
||||
target_link_libraries(qwt_example_animation
|
||||
PRIVATE
|
||||
Qt5::OpenGL
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_animation POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_animation>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_animation>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_animation>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_animation>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_animation>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_animation>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_animation>
|
||||
)
|
49
examples/barchart/CMakeLists.txt
Normal file
49
examples/barchart/CMakeLists.txt
Normal file
|
@ -0,0 +1,49 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(barchart_sources
|
||||
barchart.cpp
|
||||
barchart.h
|
||||
main.cpp
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_barchart ${barchart_sources})
|
||||
|
||||
target_link_libraries(qwt_example_barchart
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_barchart POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_barchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_barchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_barchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_barchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_barchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_barchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_barchart>
|
||||
)
|
54
examples/bode/CMakeLists.txt
Normal file
54
examples/bode/CMakeLists.txt
Normal file
|
@ -0,0 +1,54 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(bode_sources
|
||||
complexnumber.h
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
pixmaps.h
|
||||
plot.cpp
|
||||
plot.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_bode ${bode_sources})
|
||||
|
||||
target_link_libraries(qwt_example_bode
|
||||
PRIVATE
|
||||
Qt5::PrintSupport
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_bode POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_bode>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_bode>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_bode>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_bode>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_bode>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_bode>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_bode>
|
||||
)
|
63
examples/controls/CMakeLists.txt
Normal file
63
examples/controls/CMakeLists.txt
Normal file
|
@ -0,0 +1,63 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(controls_sources
|
||||
dialbox.cpp
|
||||
dialbox.h
|
||||
dialtab.cpp
|
||||
dialtab.h
|
||||
knobbox.cpp
|
||||
knobbox.h
|
||||
knobtab.cpp
|
||||
knobtab.h
|
||||
main.cpp
|
||||
sliderbox.cpp
|
||||
sliderbox.h
|
||||
slidertab.cpp
|
||||
slidertab.h
|
||||
wheelbox.cpp
|
||||
wheelbox.h
|
||||
wheeltab.cpp
|
||||
wheeltab.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_controls ${controls_sources})
|
||||
|
||||
target_link_libraries(qwt_example_controls
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_controls POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_controls>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_controls>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_controls>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_controls>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_controls>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_controls>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_controls>
|
||||
)
|
52
examples/cpuplot/CMakeLists.txt
Normal file
52
examples/cpuplot/CMakeLists.txt
Normal file
|
@ -0,0 +1,52 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(cpuplot_sources
|
||||
cpupiemarker.cpp
|
||||
cpupiemarker.h
|
||||
cpuplot.cpp
|
||||
cpuplot.h
|
||||
cpustat.cpp
|
||||
cpustat.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_cpuplot ${cpuplot_sources})
|
||||
|
||||
target_link_libraries(qwt_example_cpuplot
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_cpuplot POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_cpuplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_cpuplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_cpuplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_cpuplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_cpuplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_cpuplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_cpuplot>
|
||||
)
|
37
examples/curvdemo1/CMakeLists.txt
Normal file
37
examples/curvdemo1/CMakeLists.txt
Normal file
|
@ -0,0 +1,37 @@
|
|||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(curv_sources
|
||||
curvdemo1.cpp
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_curv ${curv_sources})
|
||||
|
||||
target_link_libraries(qwt_example_curv
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_curv POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_curv>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_curv>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_curv>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_curv>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_curv>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_curv>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_curv>
|
||||
)
|
55
examples/dials/CMakeLists.txt
Normal file
55
examples/dials/CMakeLists.txt
Normal file
|
@ -0,0 +1,55 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(dials_sources
|
||||
attitude_indicator.cpp
|
||||
attitude_indicator.h
|
||||
cockpit_grid.cpp
|
||||
cockpit_grid.h
|
||||
compass_grid.cpp
|
||||
compass_grid.h
|
||||
dials.cpp
|
||||
speedo_meter.cpp
|
||||
speedo_meter.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_dials ${dials_sources})
|
||||
|
||||
target_link_libraries(qwt_example_dials
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_dials POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_dials>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_dials>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_dials>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_dials>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_dials>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_dials>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_dials>
|
||||
)
|
49
examples/distrowatch/CMakeLists.txt
Normal file
49
examples/distrowatch/CMakeLists.txt
Normal file
|
@ -0,0 +1,49 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(distrowatch_sources
|
||||
barchart.cpp
|
||||
barchart.h
|
||||
main.cpp
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_distrowatch ${distrowatch_sources})
|
||||
|
||||
target_link_libraries(qwt_example_distrowatch
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_distrowatch POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_distrowatch>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_distrowatch>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_distrowatch>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_distrowatch>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_distrowatch>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_distrowatch>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_distrowatch>
|
||||
)
|
55
examples/event_filter/CMakeLists.txt
Normal file
55
examples/event_filter/CMakeLists.txt
Normal file
|
@ -0,0 +1,55 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(eventfilter_sources
|
||||
canvaspicker.cpp
|
||||
canvaspicker.h
|
||||
colorbar.cpp
|
||||
colorbar.h
|
||||
event_filter.cpp
|
||||
plot.cpp
|
||||
plot.h
|
||||
scalepicker.cpp
|
||||
scalepicker.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_eventfilter ${eventfilter_sources})
|
||||
|
||||
target_link_libraries(qwt_example_eventfilter
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_eventfilter POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_eventfilter>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_eventfilter>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_eventfilter>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_eventfilter>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_eventfilter>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_eventfilter>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_eventfilter>
|
||||
)
|
51
examples/friedberg/CMakeLists.txt
Normal file
51
examples/friedberg/CMakeLists.txt
Normal file
|
@ -0,0 +1,51 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(friedberg_sources
|
||||
friedberg2007.cpp
|
||||
friedberg2007.h
|
||||
main.cpp
|
||||
plot.cpp
|
||||
plot.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_friedberg ${friedberg_sources})
|
||||
|
||||
target_link_libraries(qwt_example_friedberg
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_friedberg POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_friedberg>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_friedberg>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_friedberg>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_friedberg>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_friedberg>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_friedberg>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_friedberg>
|
||||
)
|
53
examples/itemeditor/CMakeLists.txt
Normal file
53
examples/itemeditor/CMakeLists.txt
Normal file
|
@ -0,0 +1,53 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(itemeditor_sources
|
||||
editor.cpp
|
||||
editor.h
|
||||
main.cpp
|
||||
plot.cpp
|
||||
plot.h
|
||||
shapefactory.cpp
|
||||
shapefactory.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_itemeditor ${itemeditor_sources})
|
||||
|
||||
target_link_libraries(qwt_example_itemeditor
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_itemeditor POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_itemeditor>
|
||||
)
|
54
examples/legends/CMakeLists.txt
Normal file
54
examples/legends/CMakeLists.txt
Normal file
|
@ -0,0 +1,54 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(legends_sources
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
panel.cpp
|
||||
panel.h
|
||||
plot.cpp
|
||||
plot.h
|
||||
settings.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_legends ${legends_sources})
|
||||
|
||||
target_link_libraries(qwt_example_legends
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_legends POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_legends>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_legends>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_legends>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_legends>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_legends>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_legends>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_legends>
|
||||
)
|
61
examples/oscilloscope/CMakeLists.txt
Normal file
61
examples/oscilloscope/CMakeLists.txt
Normal file
|
@ -0,0 +1,61 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(oscilloscope_sources
|
||||
curvedata.cpp
|
||||
curvedata.h
|
||||
knob.cpp
|
||||
knob.h
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
plot.cpp
|
||||
plot.h
|
||||
samplingthread.cpp
|
||||
samplingthread.h
|
||||
signaldata.cpp
|
||||
signaldata.h
|
||||
wheelbox.cpp
|
||||
wheelbox.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_oscilloscope ${oscilloscope_sources})
|
||||
|
||||
target_link_libraries(qwt_example_oscilloscope
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_oscilloscope POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_oscilloscope>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_oscilloscope>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_oscilloscope>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_oscilloscope>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_oscilloscope>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_oscilloscope>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_oscilloscope>
|
||||
)
|
53
examples/radio/CMakeLists.txt
Normal file
53
examples/radio/CMakeLists.txt
Normal file
|
@ -0,0 +1,53 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(radio_sources
|
||||
ampfrm.cpp
|
||||
ampfrm.h
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
radio.cpp
|
||||
tunerfrm.cpp
|
||||
tunerfrm.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_radio ${radio_sources})
|
||||
|
||||
target_link_libraries(qwt_example_radio
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_radio POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_radio>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_radio>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_radio>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_radio>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_radio>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_radio>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_radio>
|
||||
)
|
49
examples/rasterview/CMakeLists.txt
Normal file
49
examples/rasterview/CMakeLists.txt
Normal file
|
@ -0,0 +1,49 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(rasterview_sources
|
||||
main.cpp
|
||||
plot.cpp
|
||||
plot.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_rasterview ${rasterview_sources})
|
||||
|
||||
target_link_libraries(qwt_example_rasterview
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_rasterview POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_rasterview>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_rasterview>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_rasterview>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_rasterview>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_rasterview>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_rasterview>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_rasterview>
|
||||
)
|
57
examples/realtime/CMakeLists.txt
Normal file
57
examples/realtime/CMakeLists.txt
Normal file
|
@ -0,0 +1,57 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(realtime_sources
|
||||
incrementalplot.cpp
|
||||
incrementalplot.h
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
randomplot.cpp
|
||||
randomplot.h
|
||||
scrollbar.cpp
|
||||
scrollbar.h
|
||||
scrollzoomer.cpp
|
||||
scrollzoomer.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_realtime ${realtime_sources})
|
||||
|
||||
target_link_libraries(qwt_example_realtime
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_realtime POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_realtime>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_realtime>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_realtime>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_realtime>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_realtime>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_realtime>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_realtime>
|
||||
)
|
56
examples/refreshtest/CMakeLists.txt
Normal file
56
examples/refreshtest/CMakeLists.txt
Normal file
|
@ -0,0 +1,56 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(refreshtest_sources
|
||||
circularbuffer.cpp
|
||||
circularbuffer.h
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
panel.cpp
|
||||
panel.h
|
||||
plot.cpp
|
||||
plot.h
|
||||
settings.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_refreshtest ${refreshtest_sources})
|
||||
|
||||
target_link_libraries(qwt_example_refreshtest
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_refreshtest POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_refreshtest>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_refreshtest>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_refreshtest>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_refreshtest>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_refreshtest>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_refreshtest>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_refreshtest>
|
||||
)
|
51
examples/scatterplot/CMakeLists.txt
Normal file
51
examples/scatterplot/CMakeLists.txt
Normal file
|
@ -0,0 +1,51 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(scatterplot_sources
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
plot.cpp
|
||||
plot.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_scatterplot ${scatterplot_sources})
|
||||
|
||||
target_link_libraries(qwt_example_scatterplot
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_scatterplot POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_scatterplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_scatterplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_scatterplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_scatterplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_scatterplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_scatterplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_scatterplot>
|
||||
)
|
37
examples/simpleplot/CMakeLists.txt
Normal file
37
examples/simpleplot/CMakeLists.txt
Normal file
|
@ -0,0 +1,37 @@
|
|||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(simpleplot_sources
|
||||
simpleplot.cpp
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_simpleplot ${simpleplot_sources})
|
||||
|
||||
target_link_libraries(qwt_example_simpleplot
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_simpleplot POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_simpleplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_simpleplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_simpleplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_simpleplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_simpleplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_simpleplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_simpleplot>
|
||||
)
|
37
examples/sinusplot/CMakeLists.txt
Normal file
37
examples/sinusplot/CMakeLists.txt
Normal file
|
@ -0,0 +1,37 @@
|
|||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(sinusplot_sources
|
||||
sinusplot.cpp
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_sinusplot ${sinusplot_sources})
|
||||
|
||||
target_link_libraries(qwt_example_sinusplot
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_sinusplot POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_sinusplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_sinusplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_sinusplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_sinusplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_sinusplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_sinusplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_sinusplot>
|
||||
)
|
50
examples/spectrogram/CMakeLists.txt
Normal file
50
examples/spectrogram/CMakeLists.txt
Normal file
|
@ -0,0 +1,50 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(spectrogram_sources
|
||||
main.cpp
|
||||
plot.cpp
|
||||
plot.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_spectrogram ${spectrogram_sources})
|
||||
|
||||
target_link_libraries(qwt_example_spectrogram
|
||||
PRIVATE
|
||||
Qt5::PrintSupport
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_spectrogram POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_spectrogram>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_spectrogram>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_spectrogram>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_spectrogram>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_spectrogram>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_spectrogram>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_spectrogram>
|
||||
)
|
55
examples/stockchart/CMakeLists.txt
Normal file
55
examples/stockchart/CMakeLists.txt
Normal file
|
@ -0,0 +1,55 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(stockchart_sources
|
||||
griditem.cpp
|
||||
griditem.h
|
||||
legend.cpp
|
||||
legend.h
|
||||
main.cpp
|
||||
plot.cpp
|
||||
plot.h
|
||||
quotefactory.cpp
|
||||
quotefactory.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_stockchart ${stockchart_sources})
|
||||
|
||||
target_link_libraries(qwt_example_stockchart
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_stockchart POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_stockchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_stockchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_stockchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_stockchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_stockchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_stockchart>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_stockchart>
|
||||
)
|
37
examples/sysinfo/CMakeLists.txt
Normal file
37
examples/sysinfo/CMakeLists.txt
Normal file
|
@ -0,0 +1,37 @@
|
|||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(sysinfo_sources
|
||||
sysinfo.cpp
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_sysinfo ${sysinfo_sources})
|
||||
|
||||
target_link_libraries(qwt_example_sysinfo
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_sysinfo POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_sysinfo>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_sysinfo>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_sysinfo>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_sysinfo>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_sysinfo>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_sysinfo>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_sysinfo>
|
||||
)
|
49
examples/tvplot/CMakeLists.txt
Normal file
49
examples/tvplot/CMakeLists.txt
Normal file
|
@ -0,0 +1,49 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(tvplot_sources
|
||||
main.cpp
|
||||
tvplot.cpp
|
||||
tvplot.h
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_executable(qwt_example_tvplot ${tvplot_sources})
|
||||
|
||||
target_link_libraries(qwt_example_tvplot
|
||||
PRIVATE
|
||||
qwt
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Deploy
|
||||
#----------------------------------------------------------------
|
||||
add_custom_command(
|
||||
TARGET qwt_example_tvplot POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Core> $<TARGET_FILE_DIR:qwt_example_tvplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Gui> $<TARGET_FILE_DIR:qwt_example_tvplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::OpenGL> $<TARGET_FILE_DIR:qwt_example_tvplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::PrintSupport> $<TARGET_FILE_DIR:qwt_example_tvplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Svg> $<TARGET_FILE_DIR:qwt_example_tvplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:Qt5::Widgets> $<TARGET_FILE_DIR:qwt_example_tvplot>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:qwt> $<TARGET_FILE_DIR:qwt_example_tvplot>
|
||||
)
|
244
src/CMakeLists.txt
Normal file
244
src/CMakeLists.txt
Normal file
|
@ -0,0 +1,244 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
# Find includes in corresponding build include_directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Create code from a list of Qt designer ui files
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
set(CMAKE_PREFIX_PATH "" CACHE PATH "Path to Qt")
|
||||
|
||||
find_package(Qt5Concurrent REQUIRED)
|
||||
find_package(Qt5OpenGL REQUIRED)
|
||||
find_package(Qt5PrintSupport REQUIRED)
|
||||
find_package(Qt5Svg REQUIRED)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(qwt_headers
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_abstract_legend.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_abstract_scale.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_abstract_scale_draw.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_abstract_slider.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_analog_clock.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_arrow_button.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_clipper.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_color_map.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_column_symbol.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_compass.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_compass_rose.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_counter.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_curve_fitter.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_date.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_date_scale_draw.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_date_scale_engine.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_dial.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_dial_needle.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_dyngrid_layout.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_event_pattern.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_global.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_graphic.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_interval.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_interval_symbol.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_knob.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_legend.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_legend_data.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_legend_label.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_magnifier.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_math.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_matrix_raster_data.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_null_paintdevice.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_painter.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_painter_command.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_panner.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_picker.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_picker_machine.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_pixel_matrix.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_abstract_barchart.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_barchart.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_canvas.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_curve.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_dict.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_directpainter.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_glcanvas.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_grid.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_histogram.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_intervalcurve.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_item.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_layout.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_legenditem.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_magnifier.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_marker.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_multi_barchart.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_panner.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_picker.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_rasteritem.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_renderer.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_rescaler.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_scaleitem.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_seriesitem.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_shapeitem.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_spectrogram.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_spectrocurve.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_svgitem.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_textlabel.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_tradingcurve.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_zoneitem.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_plot_zoomer.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_point_3d.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_point_data.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_point_mapper.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_point_polar.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_raster_data.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_round_scale_draw.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_samples.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_sampling_thread.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_scale_div.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_scale_draw.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_scale_engine.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_scale_map.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_scale_widget.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_series_data.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_series_store.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_slider.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_spline.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_symbol.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_system_clock.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_text.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_text_engine.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_text_label.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_thermo.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_transform.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_wheel.h
|
||||
${PROJECT_SOURCE_DIR}/include/qwt_widget_overlay.h
|
||||
)
|
||||
|
||||
set(qwt_sources
|
||||
qwt_abstract_legend.cpp
|
||||
qwt_abstract_scale.cpp
|
||||
qwt_abstract_scale_draw.cpp
|
||||
qwt_abstract_slider.cpp
|
||||
qwt_analog_clock.cpp
|
||||
qwt_arrow_button.cpp
|
||||
qwt_clipper.cpp
|
||||
qwt_color_map.cpp
|
||||
qwt_column_symbol.cpp
|
||||
qwt_compass.cpp
|
||||
qwt_compass_rose.cpp
|
||||
qwt_counter.cpp
|
||||
qwt_curve_fitter.cpp
|
||||
qwt_date.cpp
|
||||
qwt_date_scale_draw.cpp
|
||||
qwt_date_scale_engine.cpp
|
||||
qwt_dial.cpp
|
||||
qwt_dial_needle.cpp
|
||||
qwt_dyngrid_layout.cpp
|
||||
qwt_event_pattern.cpp
|
||||
qwt_graphic.cpp
|
||||
qwt_interval.cpp
|
||||
qwt_interval_symbol.cpp
|
||||
qwt_knob.cpp
|
||||
qwt_legend.cpp
|
||||
qwt_legend_data.cpp
|
||||
qwt_legend_label.cpp
|
||||
qwt_magnifier.cpp
|
||||
qwt_math.cpp
|
||||
qwt_matrix_raster_data.cpp
|
||||
qwt_null_paintdevice.cpp
|
||||
qwt_painter.cpp
|
||||
qwt_painter_command.cpp
|
||||
qwt_panner.cpp
|
||||
qwt_picker.cpp
|
||||
qwt_picker_machine.cpp
|
||||
qwt_pixel_matrix.cpp
|
||||
qwt_plot.cpp
|
||||
qwt_plot_abstract_barchart.cpp
|
||||
qwt_plot_axis.cpp
|
||||
qwt_plot_barchart.cpp
|
||||
qwt_plot_canvas.cpp
|
||||
qwt_plot_curve.cpp
|
||||
qwt_plot_dict.cpp
|
||||
qwt_plot_directpainter.cpp
|
||||
qwt_plot_glcanvas.cpp
|
||||
qwt_plot_grid.cpp
|
||||
qwt_plot_histogram.cpp
|
||||
qwt_plot_intervalcurve.cpp
|
||||
qwt_plot_item.cpp
|
||||
qwt_plot_layout.cpp
|
||||
qwt_plot_legenditem.cpp
|
||||
qwt_plot_magnifier.cpp
|
||||
qwt_plot_marker.cpp
|
||||
qwt_plot_multi_barchart.cpp
|
||||
qwt_plot_panner.cpp
|
||||
qwt_plot_picker.cpp
|
||||
qwt_plot_rasteritem.cpp
|
||||
qwt_plot_renderer.cpp
|
||||
qwt_plot_rescaler.cpp
|
||||
qwt_plot_scaleitem.cpp
|
||||
qwt_plot_seriesitem.cpp
|
||||
qwt_plot_shapeitem.cpp
|
||||
qwt_plot_spectrocurve.cpp
|
||||
qwt_plot_spectrogram.cpp
|
||||
qwt_plot_svgitem.cpp
|
||||
qwt_plot_textlabel.cpp
|
||||
qwt_plot_tradingcurve.cpp
|
||||
qwt_plot_xml.cpp
|
||||
qwt_plot_zoneitem.cpp
|
||||
qwt_plot_zoomer.cpp
|
||||
qwt_point_3d.cpp
|
||||
qwt_point_data.cpp
|
||||
qwt_point_mapper.cpp
|
||||
qwt_point_polar.cpp
|
||||
qwt_raster_data.cpp
|
||||
qwt_round_scale_draw.cpp
|
||||
qwt_sampling_thread.cpp
|
||||
qwt_scale_div.cpp
|
||||
qwt_scale_draw.cpp
|
||||
qwt_scale_engine.cpp
|
||||
qwt_scale_map.cpp
|
||||
qwt_scale_widget.cpp
|
||||
qwt_series_data.cpp
|
||||
qwt_slider.cpp
|
||||
qwt_spline.cpp
|
||||
qwt_symbol.cpp
|
||||
qwt_system_clock.cpp
|
||||
qwt_text.cpp
|
||||
qwt_text_engine.cpp
|
||||
qwt_text_label.cpp
|
||||
qwt_thermo.cpp
|
||||
qwt_transform.cpp
|
||||
qwt_wheel.cpp
|
||||
qwt_widget_overlay.cpp
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_library(qwt SHARED ${qwt_headers} ${qwt_sources})
|
||||
|
||||
target_compile_definitions(qwt
|
||||
PUBLIC
|
||||
$<$<BOOL:MSVC>:QWT_DLL>
|
||||
PRIVATE
|
||||
$<$<BOOL:MSVC>:QWT_MAKEDLL>
|
||||
)
|
||||
|
||||
target_include_directories(qwt
|
||||
PUBLIC
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
target_link_libraries(qwt
|
||||
PUBLIC
|
||||
Qt5::Core
|
||||
Qt5::OpenGL
|
||||
PRIVATE
|
||||
Qt5::Concurrent
|
||||
Qt5::PrintSupport
|
||||
Qt5::Svg
|
||||
)
|
40
textengines/CMakeLists.txt
Normal file
40
textengines/CMakeLists.txt
Normal file
|
@ -0,0 +1,40 @@
|
|||
#----------------------------------------------------------------
|
||||
# Packages
|
||||
#----------------------------------------------------------------
|
||||
find_package(Qt5Xml REQUIRED)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Sources
|
||||
#----------------------------------------------------------------
|
||||
set(qwt_mathml_headers
|
||||
include/qwt_mathml_text_engine.h
|
||||
include/qwt_mml_document.h
|
||||
)
|
||||
|
||||
set(qwt_mathml_sources
|
||||
mathml/qwt_mathml_text_engine.cpp
|
||||
mathml/qwt_mml_document.cpp
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
add_library(qwt_mathml SHARED ${qwt_mathml_headers} ${qwt_mathml_sources})
|
||||
|
||||
target_include_directories(qwt_mathml
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
target_compile_definitions(qwt_mathml
|
||||
PUBLIC
|
||||
$<$<BOOL:MSVC>:QWT_DLL>
|
||||
PRIVATE
|
||||
$<$<BOOL:MSVC>:QWT_MAKEDLL>
|
||||
)
|
||||
|
||||
target_link_libraries(qwt_mathml
|
||||
PRIVATE
|
||||
Qt5::Xml
|
||||
qwt
|
||||
)
|
Loading…
Add table
Reference in a new issue