Skip to content

Get qcustomplot from the official site and integrate it into the cmake build tree. Like a library or source files.

License

Notifications You must be signed in to change notification settings

conelov/qcustomplot-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QCustomPlot fetch with cmake

qcustomplot-fetch is a tool that allows you to obtain the QCustomPlot library from the official website using CMake during project configuration. This project simplifies the process of downloading and integrating QCustomPlot, making it more convenient and automated.

Installation

To start using QCustomPlot-Fetch, follow these steps:

  1. Add the QCustomPlot-Fetch repository as a submodule in your project using the add_subdirectory command:

    add_subdirectory(qcustomplot-fetch)
  2. If you want to specify the desired version of QCustomPlot, set the QCUSTOMPLOT_VERSION variable:

    set(QCUSTOMPLOT_VERSION "2.1.1")

    or

    cmake -DQCUSTOMPLOT_VERSION="2.1.1" .

    Alternatively, you can specify the url for downloading QCustomPlot entirely through the QCUSTOMPLOT_URL variable.

  3. If you need demonstration examples, set the QCUSTOMPLOT_DEMO variable:

    set(QCUSTOMPLOT_DEMO ON)

    You can find examples in the demo directory.

Usage Example

A CMake example for your project:

cmake_minimum_required(VERSION 3.21)
project(MyProject)

# Set the desired QCustomPlot version
set(QCUSTOMPLOT_VERSION "2.1.1")

# Add qcustomplot-fetch as a submodule
add_subdirectory(qcustomplot-fetch)

# Add your target and link it with QCustomPlot
add_executable(my_app main.cpp)
target_link_libraries(my_app PRIVATE qcustomplot)

About

Get qcustomplot from the official site and integrate it into the cmake build tree. Like a library or source files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages