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>
|
||||||
|
)
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue