Qt/CMake: Support MSVC w/ external CMake

This commit is contained in:
spycrab 2019-05-12 00:41:45 +02:00
parent c8795f799e
commit ba83cec6fb
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,7 @@
if (NOT Qt5_DIR AND MSVC)
set(Qt5_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt5.11.1/5.11.1/msvc2017_64/lib/cmake/Qt5")
endif()
find_package(Qt5 5.9 REQUIRED COMPONENTS Gui Widgets) find_package(Qt5 5.9 REQUIRED COMPONENTS Gui Widgets)
set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES "") set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES "")