mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 10:05:47 +08:00
- several bugfixes (doc etz.)
- decoration of library names in CMake-builds - renamed advancedlineandfillstyling to advplotstyling to solve problems with too long filenames
This commit is contained in:
parent
3d4da28455
commit
fb5b497356
@ -16,6 +16,9 @@ endif()
|
||||
if(NOT DEFINED BUILD_INCLUDE_XITS_FONTS)
|
||||
option(BUILD_INCLUDE_XITS_FONTS "Include XITS fonts as resources in library" ON)
|
||||
endif()
|
||||
if(NOT DEFINED BUILD_DECORATE_LIBNAMES_WITH_BUILDTYPE)
|
||||
option(BUILD_DECORATE_LIBNAMES_WITH_BUILDTYPE "If set, the build-type is appended to the library name" ON)
|
||||
endif()
|
||||
if(NOT DEFINED BUILD_EXAMPLES)
|
||||
option(BUILD_EXAMPLES "Build examples" ON)
|
||||
endif()
|
||||
@ -49,12 +52,12 @@ set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
# Set a default build type if none was specified
|
||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
message(STATUS "Setting build type to 'Debug' as none was specified")
|
||||
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build" FORCE)
|
||||
# Set the possible values of build type for cmake-gui
|
||||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
||||
endif()
|
||||
#if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
# message(STATUS "Setting build type to 'Debug' as none was specified")
|
||||
# set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build" FORCE)
|
||||
# # Set the possible values of build type for cmake-gui
|
||||
# set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
||||
#endif()
|
||||
|
||||
if (NOT CMAKE_INSTALL_LIBDIR)
|
||||
set(CMAKE_INSTALL_LIBDIR "lib")
|
||||
@ -100,6 +103,12 @@ else()
|
||||
add_definitions(-DNO_XITS_FONTS )
|
||||
endif()
|
||||
|
||||
if(BUILD_DECORATE_LIBNAMES_WITH_BUILDTYPE)
|
||||
set(LIBNAME_ADDITION "_${CMAKE_BUILD_TYPE}")
|
||||
else()
|
||||
set(LIBNAME_ADDITION )
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
# place all DLLs and EXEs in the subdirectory output of the top level directory of the build tree
|
||||
|
@ -77,7 +77,7 @@ addSimpleTest(functionplot)
|
||||
addSimpleTest(geometric)
|
||||
addSimpleTest(ui)
|
||||
addSimpleTest(boxplot)
|
||||
addSimpleTest(advancedlineandfillstyling)
|
||||
addSimpleTest(advplotstyling)
|
||||
addSimpleTest(imageplot_nodatastore)
|
||||
addSimpleTest(datastore)
|
||||
addSimpleTest(datastore_iterators)
|
||||
|
@ -74,7 +74,7 @@ build_script:
|
||||
# - type "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\random"
|
||||
- mkdir build
|
||||
- cd build
|
||||
- IF %RUN_CMAKE% EQ 1 (
|
||||
- IF %RUN_CMAKE% == 1 (
|
||||
echo "Call CMake..."
|
||||
if "%CONFIGURATION%"=="release" (set CMAKE_CONFIGURATION=RelWithDebInfo) else (set CMAKE_CONFIGURATION=Debug)
|
||||
cmake -H. -Bbuild -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%"
|
||||
|
@ -78,7 +78,7 @@ All test-projects are Qt-projects that use qmake to build. You can load them int
|
||||
<tr><td> \image html dateaxes_timeaxis_small.png
|
||||
<td> \subpage JKQTPlotterDateTimeAxes
|
||||
<td> `JKQTPXYLineGraph` and `JKQTPFilledVerticalRangeGraph` <br> C++ vector of data <br> date/time axes <br> plot min/max range graph <br> internal LaTeX parser <br> data from CSV files
|
||||
<tr><td> \image html advancedlineandfillstyling_small.png
|
||||
<tr><td> \image html advplotstyling_small.png
|
||||
<td> \subpage JKQTPlotterAdvancedLineAndFillStyling
|
||||
<td> `JKQTPXYLineGraph`, `JKQTPSpecialLineHorizontalGraph` and `JKQTPBarVerticalGraph` <br> C++ vector of data <br> advanced line styling and filling
|
||||
<tr><td> \image html test_styledboxplot_small.png
|
||||
|
@ -392,7 +392,7 @@ This group assembles graphs that show their data with symbols and optionally wit
|
||||
<th> Screenshot
|
||||
<th> Classes
|
||||
<tr>
|
||||
<td>\image html symbol_symbol_filled_diamond.png
|
||||
<td>\image html symbol_filled_diamond.png
|
||||
<td> JKQTPGeoSymbol
|
||||
<tr>
|
||||
<td>\image html geo_text_small.png
|
||||
|
@ -11,7 +11,7 @@ add_subdirectory(jkqtmathtext_simpletest)
|
||||
add_subdirectory(jkqtmathtext_test)
|
||||
|
||||
|
||||
add_subdirectory(advancedlineandfillstyling)
|
||||
add_subdirectory(advplotstyling)
|
||||
add_subdirectory(barchart)
|
||||
add_subdirectory(boxplot)
|
||||
add_subdirectory(contourplot)
|
||||
|
@ -32,7 +32,7 @@ All test-projects are Qt-projects that use qmake to build. You can load them int
|
||||
|:-------------:| ------------- | ------------- |
|
||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/logaxes_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/logaxes) | [logarithmic axes](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/logaxes) | `JKQTPXYLineGraph` and `JKQTPGeoText` <br> C++ vector of data <br> logarithmic axes and styling <br> plot line styles <br> internal LaTeX parser <br> add commenting text to a graph |
|
||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/dateaxes_small.png) <br> ![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/dateaxes_dates_small.png) <br> ![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/dateaxes_timeaxis_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/dateaxes) | [date/time axes](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/dateaxes) | `JKQTPXYLineGraph` and `JKQTPFilledVerticalRangeGraph` <br> C++ vector of data <br> date/time axes <br> plot min/max range graph <br> internal LaTeX parser <br> data from CSV files |
|
||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/advancedlineandfillstyling_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/advancedlineandfillstyling) | [advanced line and fill styling](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/advancedlineandfillstyling) | `JKQTPXYLineGraph`, `JKQTPSpecialLineHorizontalGraph` and `JKQTPBarVerticalGraph` <br> C++ vector of data <br> advanced line styling and filling |
|
||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/advplotstyling_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/advplotstyling) | [advanced line and fill styling](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/advplotstyling) | `JKQTPXYLineGraph`, `JKQTPSpecialLineHorizontalGraph` and `JKQTPBarVerticalGraph` <br> C++ vector of data <br> advanced line styling and filling |
|
||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/test_styledboxplot_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/styledboxplot) | [Styling of Boxplots](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/styledboxplot) | Modifying different Aspects of the Styling of boxplots |
|
||||
| [![](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/test_styling_small.png)](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/styling) | [Styling of JKQTPlotter](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/styling) | Modifying different Aspects of the Styling of JKQTPlotter |
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS += jkqtplotterlib advancedlineandfillstyling
|
||||
|
||||
jkqtplotterlib.file = ../../qmake/staticlib/jkqtplotterlib/jkqtplotterlib.pro
|
||||
|
||||
advancedlineandfillstyling.file=$$PWD/advancedlineandfillstyling.pro
|
||||
advancedlineandfillstyling.depends = jkqtplotterlib
|
@ -1,23 +1,23 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
set(EXAMPLE_NAME advancedlineandfillstyling)
|
||||
set(EXAMPLE_NAME advplotstyling)
|
||||
set(EXENAME jkqtptest_${EXAMPLE_NAME})
|
||||
|
||||
message( STATUS ".. Building Example ${EXAMPLE_NAME}" )
|
||||
|
||||
|
||||
# Set up source files
|
||||
set(SOURCES advancedlineandfillstyling.cpp )
|
||||
set(SOURCES advplotstyling.cpp )
|
||||
set(HEADERS )
|
||||
set(RESOURCES )
|
||||
set(UIS advancedlineandfillstyling.qrc )
|
||||
set(UIS advplotstyling.qrc )
|
||||
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
# Installation
|
@ -1,7 +1,7 @@
|
||||
# Example (JKQTPlotter): Advanced Line and Fill Styling {#JKQTPlotterAdvancedLineAndFillStyling}
|
||||
This project (see `./examples/advancedlineandfillstyling/`) demonstrates how to use advanced line styling and filling options (e.g. custom dash-styles, gradient, image fills, transparencies, ...) with JKQtPlotter.
|
||||
This project (see `./examples/advplotstyling/`) demonstrates how to use advanced line styling and filling options (e.g. custom dash-styles, gradient, image fills, transparencies, ...) with JKQtPlotter.
|
||||
|
||||
The source code of the main application can be found in [`advancedlineandfillstyling.cpp`](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/advancedlineandfillstyling/advancedlineandfillstyling.cpp).
|
||||
The source code of the main application can be found in [`advplotstyling.cpp`](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/advplotstyling/advplotstyling.cpp).
|
||||
|
||||
Initially several data columns are generated and added to the internal datastore. Then several line graphs are added that all use different custom dashes. In addition the third line does not use a single color, but a gradient for coloring:
|
||||
```.cpp
|
||||
@ -104,7 +104,7 @@ In addition to the graph background properties, also the plot/widget/key backgro
|
||||
|
||||
The result looks like this:
|
||||
|
||||
![advancedlineandfillstyling](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/advancedlineandfillstyling.png)
|
||||
![advplotstyling](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/advplotstyling.png)
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/** \example advancedlineandfillstyling.cpp
|
||||
/** \example advplotstyling.cpp
|
||||
* Shows how to use advanced line styling and filling options with JKQTPlotter
|
||||
*
|
||||
* \ref JKQTPlotterAdvancedLineAndFillStyling, JKQTPXYLineGraph, JKQTPSpecialLineHorizontalGraph, JKQTPBarVerticalGraph
|
@ -1,7 +1,7 @@
|
||||
# source code for this simple demo
|
||||
SOURCES = advancedlineandfillstyling.cpp
|
||||
SOURCES = advplotstyling.cpp
|
||||
|
||||
RESOURCES += advancedlineandfillstyling.qrc
|
||||
RESOURCES += advplotstyling.qrc
|
||||
|
||||
# configure Qt
|
||||
CONFIG += link_prl qt
|
||||
@ -9,7 +9,7 @@ QT += core gui xml svg
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
||||
|
||||
# output executable name
|
||||
TARGET = advancedlineandfillstyling
|
||||
TARGET = advplotstyling
|
||||
|
||||
|
||||
# include JKQTPlotter source code
|
8
examples/advplotstyling/advplotstyling_and_lib.pro
Normal file
8
examples/advplotstyling/advplotstyling_and_lib.pro
Normal file
@ -0,0 +1,8 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS += jkqtplotterlib advplotstyling
|
||||
|
||||
jkqtplotterlib.file = ../../qmake/staticlib/jkqtplotterlib/jkqtplotterlib.pro
|
||||
|
||||
advplotstyling.file=$$PWD/advplotstyling.pro
|
||||
advplotstyling.depends = jkqtplotterlib
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -17,9 +17,9 @@ if (BUILD_HAS_OPENCV)
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
||||
target_link_libraries(${EXENAME} ${OpenCV_LIBS} )
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -18,9 +18,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTFastPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTFastPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTFastPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTFastPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -17,9 +17,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTMathTextLib)
|
||||
target_link_libraries(${EXENAME} JKQTMathTextLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTMathTextSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTMathTextSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -18,9 +18,9 @@ set(UIS testform.ui )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTMathTextLib)
|
||||
target_link_libraries(${EXENAME} JKQTMathTextLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTMathTextSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTMathTextSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS test_multiplot_ui.ui )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -17,9 +17,9 @@ if (BUILD_HAS_OPENCV)
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
||||
target_link_libraries(${EXENAME} ${OpenCV_LIBS} )
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS test_styling.ui )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS formwithjkqtplotter.ui )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -15,9 +15,9 @@ set(UIS )
|
||||
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
||||
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
||||
if(BUILD_STATIC_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterLib${LIBNAME_ADDITION})
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
||||
target_link_libraries(${EXENAME} JKQTPlotterSharedLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 3.0)
|
||||
set(libBasename JKQTCommon)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(libsh_name ${libBasename}SharedLib)
|
||||
set(libsh_name ${libBasename}SharedLib${LIBNAME_ADDITION})
|
||||
set(${libsh_name}_LIBRARY ${libsh_name} PARENT_SCOPE)
|
||||
message( STATUS "-- Building ${libsh_name}" )
|
||||
endif(BUILD_SHARED_LIBS)
|
||||
|
||||
if(BUILD_STATIC_LIBS)
|
||||
set(lib_name ${libBasename}Lib)
|
||||
set(lib_name ${libBasename}Lib${LIBNAME_ADDITION})
|
||||
set(${lib_name}_LIBRARY ${lib_name} PARENT_SCOPE)
|
||||
message( STATUS "-- Building ${lib_name}" )
|
||||
endif(BUILD_STATIC_LIBS)
|
||||
|
@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 3.0)
|
||||
set(libBasename JKQTFastPlotter)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(libsh_name ${libBasename}SharedLib)
|
||||
set(libsh_name ${libBasename}SharedLib${LIBNAME_ADDITION})
|
||||
set(${libsh_name}_LIBRARY ${libsh_name} PARENT_SCOPE)
|
||||
message( STATUS "-- Building ${libsh_name}" )
|
||||
endif(BUILD_SHARED_LIBS)
|
||||
|
||||
if(BUILD_STATIC_LIBS)
|
||||
set(lib_name ${libBasename}Lib)
|
||||
set(lib_name ${libBasename}Lib${LIBNAME_ADDITION})
|
||||
set(${lib_name}_LIBRARY ${lib_name} PARENT_SCOPE)
|
||||
message( STATUS "-- Building ${lib_name}" )
|
||||
endif(BUILD_STATIC_LIBS)
|
||||
@ -29,7 +29,7 @@ set(HEADERS
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_library(${libsh_name} SHARED ${SOURCES} ${HEADERS} ${RESOURCES})
|
||||
set_property(TARGET ${libsh_name} PROPERTY VERSION "${PROJECT_VERSION}")
|
||||
target_link_libraries(${libsh_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::OpenGL JKQTCommonSharedLib)
|
||||
target_link_libraries(${libsh_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::OpenGL JKQTCommonSharedLib${LIBNAME_ADDITION})
|
||||
target_compile_definitions(${libsh_name} PUBLIC JKQTP_LIB_IN_DLL)
|
||||
target_compile_definitions(${libsh_name} PRIVATE JKQTP_LIB_EXPORT_LIBRARY)
|
||||
endif()
|
||||
@ -37,7 +37,7 @@ endif()
|
||||
if(BUILD_STATIC_LIBS)
|
||||
add_library(${lib_name} STATIC ${SOURCES} ${HEADERS} ${RESOURCES})
|
||||
set_property(TARGET ${lib_name} PROPERTY VERSION "${PROJECT_VERSION}")
|
||||
target_link_libraries(${lib_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::OpenGL JKQTCommonLib)
|
||||
target_link_libraries(${lib_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::OpenGL JKQTCommonLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 3.0)
|
||||
set(libBasename JKQTMathText)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(libsh_name ${libBasename}SharedLib)
|
||||
set(libsh_name ${libBasename}SharedLib${LIBNAME_ADDITION})
|
||||
set(${libsh_name}_LIBRARY ${libsh_name} PARENT_SCOPE)
|
||||
message( STATUS "-- Building ${libsh_name}" )
|
||||
endif(BUILD_SHARED_LIBS)
|
||||
|
||||
if(BUILD_STATIC_LIBS)
|
||||
set(lib_name ${libBasename}Lib)
|
||||
set(lib_name ${libBasename}Lib${LIBNAME_ADDITION})
|
||||
set(${lib_name}_LIBRARY ${lib_name} PARENT_SCOPE)
|
||||
message( STATUS "-- Building ${lib_name}" )
|
||||
endif(BUILD_STATIC_LIBS)
|
||||
@ -35,7 +35,7 @@ endif(BUILD_INCLUDE_XITS_FONTS)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_library(${libsh_name} SHARED ${SOURCES} ${HEADERS} ${RESOURCES})
|
||||
set_property(TARGET ${libsh_name} PROPERTY VERSION "${PROJECT_VERSION}")
|
||||
target_link_libraries(${libsh_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport JKQTCommonSharedLib)
|
||||
target_link_libraries(${libsh_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport JKQTCommonSharedLib${LIBNAME_ADDITION})
|
||||
target_compile_definitions(${libsh_name} PUBLIC JKQTP_LIB_IN_DLL)
|
||||
target_compile_definitions(${libsh_name} PRIVATE JKQTP_LIB_EXPORT_LIBRARY)
|
||||
endif()
|
||||
@ -43,7 +43,7 @@ endif()
|
||||
if(BUILD_STATIC_LIBS)
|
||||
add_library(${lib_name} STATIC ${SOURCES} ${HEADERS} ${RESOURCES})
|
||||
set_property(TARGET ${lib_name} PROPERTY VERSION "${PROJECT_VERSION}")
|
||||
target_link_libraries(${lib_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport JKQTCommonLib)
|
||||
target_link_libraries(${lib_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport JKQTCommonLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 3.0)
|
||||
set(libBasename JKQTPlotter)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(libsh_name ${libBasename}SharedLib)
|
||||
set(libsh_name ${libBasename}SharedLib${LIBNAME_ADDITION})
|
||||
set(${libsh_name}_LIBRARY ${libsh_name} PARENT_SCOPE)
|
||||
message( STATUS "-- Building ${libsh_name}" )
|
||||
endif(BUILD_SHARED_LIBS)
|
||||
|
||||
if(BUILD_STATIC_LIBS)
|
||||
set(lib_name ${libBasename}Lib)
|
||||
set(lib_name ${libBasename}Lib${LIBNAME_ADDITION})
|
||||
set(${lib_name}_LIBRARY ${lib_name} PARENT_SCOPE)
|
||||
message( STATUS "-- Building ${lib_name}" )
|
||||
endif(BUILD_STATIC_LIBS)
|
||||
@ -125,7 +125,7 @@ set(RESOURCES
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_library(${libsh_name} SHARED ${SOURCES} ${SOURCES_GRAPHS} ${SOURCES_GUI} ${SOURCES_OVERLAYS} ${HEADERS} ${HEADERS_GRAPHS} ${HEADERS_GUI} ${HEADERS_OVERLAYS} ${RESOURCES})
|
||||
set_property(TARGET ${libsh_name} PROPERTY VERSION "${PROJECT_VERSION}")
|
||||
target_link_libraries(${libsh_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Svg Qt5::Xml JKQTCommonSharedLib JKQTMathTextSharedLib)
|
||||
target_link_libraries(${libsh_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Svg Qt5::Xml JKQTCommonSharedLib${LIBNAME_ADDITION} JKQTMathTextSharedLib${LIBNAME_ADDITION})
|
||||
target_compile_definitions(${libsh_name} PUBLIC JKQTP_LIB_IN_DLL)
|
||||
target_compile_definitions(${libsh_name} PRIVATE JKQTP_LIB_EXPORT_LIBRARY)
|
||||
endif()
|
||||
@ -133,7 +133,7 @@ endif()
|
||||
if(BUILD_STATIC_LIBS)
|
||||
add_library(${lib_name} STATIC ${SOURCES} ${SOURCES_GRAPHS} ${SOURCES_GUI} ${SOURCES_OVERLAYS} ${HEADERS} ${HEADERS_GRAPHS} ${HEADERS_GUI} ${HEADERS_OVERLAYS} ${RESOURCES})
|
||||
set_property(TARGET ${lib_name} PROPERTY VERSION "${PROJECT_VERSION}")
|
||||
target_link_libraries(${lib_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Svg Qt5::Xml JKQTCommonLib JKQTMathTextLib)
|
||||
target_link_libraries(${lib_name} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Svg Qt5::Xml JKQTCommonLib${LIBNAME_ADDITION} JKQTMathTextLib${LIBNAME_ADDITION})
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -34,7 +34,7 @@ class JKQTBasePlotter; // forward
|
||||
* This class is derived from <a href="http://doc.qt.io/qt-5/qabstracttablemodel.html">QAbstractTableModel</a> and implements a model where
|
||||
* some properties are editable. It is designed to be used together with e.g. <a href="http://doc.qt.io/qt-5/qlistview.html">QListView</a>.
|
||||
*
|
||||
* \image html graphs/jkqtpModel.png
|
||||
* \image html JKQTPgraphsModel.png
|
||||
*
|
||||
*/
|
||||
class JKQTPGraphsModel : public QAbstractTableModel
|
||||
|
@ -913,10 +913,11 @@ void JKQTPlotter::keyReleaseEvent(QKeyEvent *event) {
|
||||
}
|
||||
|
||||
void JKQTPlotter::wheelEvent ( QWheelEvent * event ) {
|
||||
|
||||
//qDebug()<<"wheelEvent()";
|
||||
auto itAction=findMatchingMouseWheelAction(event->modifiers());
|
||||
if (itAction!=plotterStyle.registeredMouseWheelActions.end()) {
|
||||
if (itAction.value()==JKQTPMouseWheelActions::jkqtpmwaZoomByWheel) {
|
||||
//qDebug()<<"wheelEvent():ZoomByWheel";
|
||||
double factor=pow(2.0, 1.0*static_cast<double>(event->delta())/120.0)*2.0;
|
||||
double xmin=plotter->p2x(static_cast<double>(event->x())/magnification-static_cast<double>(plotter->getPlotWidth())/factor);
|
||||
double xmax=plotter->p2x(static_cast<double>(event->x())/magnification+static_cast<double>(plotter->getPlotWidth())/factor);
|
||||
@ -931,6 +932,7 @@ void JKQTPlotter::wheelEvent ( QWheelEvent * event ) {
|
||||
}
|
||||
plotter->setXY(xmin, xmax, ymin, ymax);
|
||||
} else if (itAction.value()==JKQTPMouseWheelActions::jkqtpmwaPanByWheel) {
|
||||
//qDebug()<<"wheelEvent():PanByWheel";
|
||||
QRectF zoomRect= QRectF(QPointF(plotter->x2p(getXAxis()->getMin()),plotter->y2p(getYAxis()->getMax())), QPointF(plotter->x2p(getXAxis()->getMax()),plotter->y2p(getYAxis()->getMin())));
|
||||
QPointF d=QPointF(event->angleDelta().x()/120.0*zoomRect.width()/10.0,
|
||||
event->angleDelta().y()/120.0*zoomRect.height()/10.0);
|
||||
@ -1665,6 +1667,7 @@ JKQTPMouseDoubleClickActionsHashMapIterator JKQTPlotter::findMatchingMouseDouble
|
||||
|
||||
JKQTPMouseWheelActionsHashMapIterator JKQTPlotter::findMatchingMouseWheelAction(Qt::KeyboardModifiers modifiers) const
|
||||
{
|
||||
//qDebug()<<"findMatchingMouseWheelAction("<<modifiers<<"): "<<plotterStyle.registeredMouseWheelActions;
|
||||
return plotterStyle.registeredMouseWheelActions.find(modifiers);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user