2021-02-12 01:34:25 +09:00
|
|
|
# CMakeLists.txt for Console Application
|
2021-02-11 23:38:37 +09:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2021-02-11 23:38:37 +09:00
|
|
|
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-11 23:38:37 +09:00
|
|
|
|
2021-02-12 01:34:25 +09:00
|
|
|
#########################
|
|
|
|
# Console Application {{
|
2021-02-11 23:38:37 +09:00
|
|
|
|
2022-10-15 14:29:30 +01:00
|
|
|
add_executable(HelloWorld main.cpp)
|
|
|
|
target_link_libraries(HelloWorld PRIVATE QXlsx::QXlsx)
|
2021-02-11 23:38:37 +09:00
|
|
|
|
2021-02-12 01:34:25 +09:00
|
|
|
# Console Application }}
|
|
|
|
########################
|