运行之前
This commit is contained in:
@@ -5,5 +5,8 @@ include("${CMAKE_CURRENT_LIST_DIR}/computer_graphics.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/libarchive.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/with_qt.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/osg_earth.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/vsg_cesium.cmake")
|
||||
|
||||
if(DEFINED ENV{VULKAN_SDK} OR NOT "$ENV{VULKAN_SDK}" STREQUAL "")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/vsg_cesium.cmake")
|
||||
endif ()
|
||||
|
||||
|
||||
Vendored
+24
-8
@@ -3,22 +3,38 @@
|
||||
#set(CMAKE_AUTORCC ON)
|
||||
#set(CMAKE_AUTOUIC ON)
|
||||
|
||||
macro(select_first_existing_directory out_var)
|
||||
unset(${out_var})
|
||||
foreach(candidate ${ARGN})
|
||||
if(IS_DIRECTORY "${candidate}")
|
||||
set(${out_var} "${candidate}")
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
||||
if(NOT DEFINED ${out_var})
|
||||
message(FATAL_ERROR "No candidate directory exists for ${out_var}: ${ARGN}")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
set(Qt5_Plugin_DIR)
|
||||
if(${G_Architecture_Name} MATCHES "^cl_Windows" OR ${G_Architecture_Name} MATCHES "^vs")
|
||||
# include_directories(C:/Qt/5.15.2/Src)
|
||||
# set(Qt5_BaseDIR C:/Qt/5.15.2/msvc2019_64)
|
||||
|
||||
|
||||
set(ver 5.14.2)
|
||||
|
||||
set(qt_candidates
|
||||
"D:/Qt/Qt${ver}"
|
||||
"C:/Qt/Qt${ver}"
|
||||
"D:/Qt/${ver}"
|
||||
"C:/Qt/${ver}"
|
||||
)
|
||||
set(t msvc2017_64)
|
||||
|
||||
# set(ver 5.15.2)
|
||||
# set(t msvc2019_64)
|
||||
|
||||
set(qb D:/Qt/Qt${ver})
|
||||
include_directories(${qb}/Src)
|
||||
set(Qt5_BaseDIR ${qb}/${ver}/${t})
|
||||
set(Qt5_Plugin_DIR ${Qt5_BaseDIR}/plugins)
|
||||
select_first_existing_directory(qb ${qt_candidates})
|
||||
include_directories("${qb}/Src")
|
||||
set(Qt5_BaseDIR "${qb}/${ver}/${t}")
|
||||
set(Qt5_Plugin_DIR "${Qt5_BaseDIR}/plugins")
|
||||
|
||||
elseif(${G_Architecture_Name} MATCHES "^gxx_Windows")
|
||||
set(Qt5_BaseDIR D:/Qt5.14.2/5.14.2/mingw73_64)
|
||||
|
||||
Reference in New Issue
Block a user