cmake example with Support of Qt5

时间:2022-07-17 22:19:58
【文件属性】:

文件名称:cmake example with Support of Qt5

文件大小:9KB

文件格式:ZIP

更新时间:2022-07-17 22:19:58

cmake qt qt5

project( Qt5Project ) cmake_minimum_required( VERSION 2.8.11 ) # root of your msvc14 x64 prebuild set( CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "C:/Qt/Qt5-msvc14/5.6/msvc2015_64" ) set( CMAKE_INCLUDE_CURRENT_DIR ON ) set( CMAKE_AUTOMOC ON ) find_package( Qt5Widgets REQUIRED ) qt5_wrap_ui( UI_HEADERS mainwindow.ui ) qt5_add_resources( QRCS resources.qrc ) add_executable( ${PROJECT_NAME} main.cpp mainwindow.cpp ${UI_HEADERS} ${QRCS} ) target_link_libraries


【文件预览】:
qt5-project
----resources()
--------helloworld-transparent.png(3KB)
----resources.qrc(115B)
----CMakeLists.txt.user(38KB)
----main.cpp(172B)
----mainwindow.ui(2KB)
----mainwindow.cpp(286B)
----CMakeLists.txt(668B)
----mainwindow.h(343B)
----README.md(398B)

网友评论