com:编译设定。
This commit is contained in:
@@ -27,12 +27,20 @@ message(STATUS "frelay use MINGW compiler.")
|
|||||||
set(COMPILER_USE_MINGW ON)
|
set(COMPILER_USE_MINGW ON)
|
||||||
add_definitions(-DCOMPILER_USE_MINGW)
|
add_definitions(-DCOMPILER_USE_MINGW)
|
||||||
get_filename_component(CXX_COMPILER_PATH ${CMAKE_CXX_COMPILER} DIRECTORY)
|
get_filename_component(CXX_COMPILER_PATH ${CMAKE_CXX_COMPILER} DIRECTORY)
|
||||||
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
set(MINGW_DLLS
|
||||||
|
"${CXX_COMPILER_PATH}/libgcc_s_seh-1.dll"
|
||||||
|
"${CXX_COMPILER_PATH}/libstdc++-6.dll"
|
||||||
|
"${CXX_COMPILER_PATH}/libwinpthread-1.dll"
|
||||||
|
)
|
||||||
|
else()
|
||||||
set(MINGW_DLLS
|
set(MINGW_DLLS
|
||||||
"${CXX_COMPILER_PATH}/libgcc_s_dw2-1.dll"
|
"${CXX_COMPILER_PATH}/libgcc_s_dw2-1.dll"
|
||||||
"${CXX_COMPILER_PATH}/libstdc++-6.dll"
|
"${CXX_COMPILER_PATH}/libstdc++-6.dll"
|
||||||
"${CXX_COMPILER_PATH}/libwinpthread-1.dll"
|
"${CXX_COMPILER_PATH}/libwinpthread-1.dll"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
if(DEFINED XP_PLATFORM_SUPPORT)
|
if(DEFINED XP_PLATFORM_SUPPORT)
|
||||||
|
|||||||
9
Script/qt6build-MinGW-Official.bat
Normal file
9
Script/qt6build-MinGW-Official.bat
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
@echo on
|
||||||
|
|
||||||
|
set QT_DIR=C:/Qt/6.8.3/mingw_64
|
||||||
|
cd ..
|
||||||
|
cmake -G "MinGW Makefiles" -Bbuild-qt6 -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=6 -DCOMPILE_GUI=ON
|
||||||
|
cmake --build build-qt6 --config Release
|
||||||
|
cd build-qt6
|
||||||
|
cpack
|
||||||
|
pause
|
||||||
Reference in New Issue
Block a user