1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00
QXlsx/HelloWorld/CMakeLists.txt

25 lines
587 B
CMake
Raw Normal View History

2021-02-12 01:34:25 +09:00
# CMakeLists.txt for Console Application
# TODO: Set minumum cmake version
cmake_minimum_required(VERSION 3.14)
# TODO: Set project name
project(HelloWorld LANGUAGES CXX)
2021-02-12 01:34:25 +09:00
# 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)
2022-10-15 14:29:30 +01:00
add_subdirectory(QXlsx)
2021-02-12 01:34:25 +09:00
#########################
# Console Application {{
2022-10-15 14:29:30 +01:00
add_executable(HelloWorld main.cpp)
target_link_libraries(HelloWorld PRIVATE QXlsx::QXlsx)
2021-02-12 01:34:25 +09:00
# Console Application }}
########################