1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00
QXlsx/HowToSetProject-cmake.md
Alexey Sokolov 6899b68adb Update docs
2022-10-17 08:37:45 -03:00

660 B

Using cmake

Read this in other languages: English, 🇰🇷 한국어

To install QXlsx

Enter the command as shown below.

mkdir build
cd build
cmake ../QXlsx/ -DCMAKE_INSTALL_PREFIX=... -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --install .

To use in your application

In your CMakeLists.txt:

find_package(QXlsxQt5 REQUIRED) # or QXlsxQt6
target_link_libraries(myapp PRIVATE QXlsx::QXlsx)

To use in your application without installation

In your CMakeLists.txt:

add_subdirectory(QXlsx)
target_link_libraries(myapp PRIVATE QXlsx::QXlsx)