File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ target_link_libraries(MyApp PRIVATE QTradingView::QTradingView)
4949```
5050This automatically downloads, builds, and links QTradingView into your project.
5151
52+ Alternatively, if you installed the prebuilt binaries from the releases, you can use ` find_package ` :
53+
54+ ``` cmake
55+ find_package(QTradingView CONFIG REQUIRED)
56+
57+ add_executable(MyApp main.cpp)
58+ target_link_libraries(MyApp PRIVATE QTradingView::QTradingView)
59+ ```
5260## Usage
5361
5462Creating charts is simple and modular. Start with a ` Chart ` add one or more ` Panes ` and attach series:
Original file line number Diff line number Diff line change @@ -29,12 +29,14 @@ target_link_libraries(MyApp PRIVATE QTradingView::QTradingView)
2929
3030This downloads, builds, and links QTradingView into your project.
3131
32- ## Option B — add_subdirectory
32+ ## Option B — Find package (prebuilt binaries)
3333
34- If you prefer to keep the repository as a submodule or as part of your source tree, use ` add_subdirectory ` :
34+ If you installed the prebuilt binaries from the releases, you can use ` find_package ` :
35+
36+ Usage:
3537
3638``` cmake
37- add_subdirectory(path/to/ QTradingView)
39+ find_package( QTradingView CONFIG REQUIRED )
3840add_executable(MyApp main.cpp)
3941target_link_libraries(MyApp PRIVATE QTradingView::QTradingView)
4042```
You can’t perform that action at this time.
0 commit comments