mirror of
https://github.com/QtExcel/QXlsx.git
synced 2025-01-16 04:42:53 +08:00
25 lines
587 B
CMake
25 lines
587 B
CMake
# CMakeLists.txt for Console Application
|
|
|
|
# TODO: Set minumum cmake version
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
# TODO: Set project name
|
|
project(HelloWorld LANGUAGES CXX)
|
|
|
|
# TODO: Set Your C++ version
|
|
set(CMAKE_CXX_STANDARD 11) # C++ 11
|
|
|
|
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Gui REQUIRED)
|
|
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui REQUIRED)
|
|
|
|
add_subdirectory(QXlsx)
|
|
|
|
#########################
|
|
# Console Application {{
|
|
|
|
add_executable(HelloWorld main.cpp)
|
|
target_link_libraries(HelloWorld PRIVATE QXlsx::QXlsx)
|
|
|
|
# Console Application }}
|
|
########################
|