no message

master
zcy 2021-04-05 23:40:14 +08:00
parent d13b4ccf32
commit d29cee3d5a
1 changed files with 13 additions and 32 deletions

View File

@ -1,9 +1,11 @@
cmake_minimum_required(VERSION 3.5)
include_directories(third/lua/include)
link_directories(third/lua/lib)
link_libraries(lua)
project(protoDebuger LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC FALSE)
@ -13,66 +15,45 @@ set(CMAKE_AUTORCC FALSE)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(third/lua/include)
link_directories(third/lua/lib)
link_libraries(lua)
find_package(Qt5 COMPONENTS Core Quick Widgets REQUIRED)
#include(D:\\project\\c++qt\\qsswraper\\CMakeLists.txt)
include(D:\\project\\c++qt\\qsswraper\\CMakeLists.txt)
set(HEADERS # 待预编译的cpp头文件
dialog.h
)
set(SOURCES # 待预编译的cpp代码
dialog.cpp
main.cpp
)
set(HEADERS # 待预编译的cpp头文件
dialog.h
)
set(RESOURCES
qml.qrc
)
set(QMLS
main.qml
)
set (UIS
"dialog.ui"
${QsswraperUI}
)
${QsswraperUI})
QT5_WRAP_CPP(MOC ${SOURCES} ) # moc
QT5_WRAP_CPP(MOCHEADER ${HEADERS} ) # moc
QT5_ADD_RESOURCES(RCC ${RESOURCES}) # rcccpp
QT5_WRAP_UI(UIC ${UIS}) # uicui_x.h
FOREACH(list ${MOCHEADER})
message("MOCHEADER file " ${list})
ENDFOREACH(list)
FOREACH(list ${MOC})
message("MOC file " ${list})
ENDFOREACH(list)
FOREACH(list ${SOURCES})
message("SOURCES file " ${list})
ENDFOREACH(list)
FOREACH(list ${UIC})
message("UIC file " ${list})
ENDFOREACH(list)
FOREACH(list ${RCC})
message("RCC file " ${list})
ENDFOREACH(list)
message("MOC " ${MOC} ${MOCHEADER})
message("UIC " ${UIC})
message("RCC " ${RCC})
add_executable(protoDebuger #最后需要参与链接生成的是
${SOURCES} #1. cpp
${MOC} #2. cpp
${RCC} #3. cpp
${UIC}
)
target_compile_definitions(protoDebuger